|
|
|
08-04-2018, 04:10 AM
|
#1
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
FR: Video processor Playstate variable
Hi,
According to the video processor doc ( http://mespotine.de/Ultraschall/Reaper_API_Video.html), there is no way to get playstate. EDIT: And play/edit cursor position.
And to get Edit Cursor Position (so we can make calculus like for pre-roll).
It would be nice if we could so that we could add conditions when recording etc...
Thx !
Last edited by X-Raym; 08-20-2018 at 04:24 AM.
|
|
|
08-04-2018, 05:40 PM
|
#2
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
+1
In addition to that, it would be cool to easily display the several global-variables. Everytime I tried to display special-variables like project_time, the gfx_str_draw-function didn't display it.
Maybe, I need to convert it somehow, but I have no idea, how with the current set of functions.
|
|
|
08-05-2018, 06:58 AM
|
#3
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@mespotine
Have you tried sprintf( new_variable_str, "%d", variable_num ), where %d is the format (can be other format, like %f) ?
|
|
|
08-05-2018, 12:30 PM
|
#4
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Thanx, I'll try it out
|
|
|
08-18-2018, 07:13 AM
|
#5
|
Human being with feelings
Join Date: May 2017
Posts: 981
|
This will help in many ways.. Bump
|
|
|
08-20-2018, 04:02 AM
|
#6
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
Having access to edit cursor position would be nice too ! So we can make things like Pre-roll indicators etc... We only have current time position in seconds.
|
|
|
08-20-2018, 04:04 AM
|
#7
|
Human being with feelings
Join Date: May 2017
Posts: 981
|
Quote:
Originally Posted by X-Raym
Having access to edit cursor position would be nice too ! So we can make things like Pre-roll indicators etc... We only have current time position in seconds.
|
We do have store edit cursor position..would that be of any use?
|
|
|
08-20-2018, 04:20 AM
|
#8
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@svijayrathinam
How do you do that ?
|
|
|
08-20-2018, 05:39 AM
|
#10
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
@svijayrathinam
Ok this is not related to what I'm looking for.
What I need is a special variables for the video processor API. This is just an action to store the edit cursor pos in the arrange view. The value can't be access from Video Processor.
|
|
|
08-20-2018, 05:57 AM
|
#11
|
Human being with feelings
Join Date: May 2017
Posts: 981
|
Quote:
Originally Posted by X-Raym
@svijayrathinam
Ok this is not related to what I'm looking for.
What I need is a special variables for the video processor API. This is just an action to store the edit cursor pos in the arrange view. The value can't be access from Video Processor.
|
ok..Sorry for misleading you
|
|
|
10-29-2018, 03:23 PM
|
#12
|
Administrator
Join Date: Jan 2005
Location: NYC
Posts: 15,721
|
Hmm if we provided this data the video processors, it might not really be reliable, since video frames get cached (so for example, the frames around where you are stopped are rendered while the transport is stopped, and when you start playback it will play the cached frames).. so it wouldn't work as expected.
|
|
|
10-30-2018, 10:52 AM
|
#13
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Quote:
Originally Posted by Justin
Hmm if we provided this data the video processors, it might not really be reliable, since video frames get cached (so for example, the frames around where you are stopped are rendered while the transport is stopped, and when you start playback it will play the cached frames).. so it wouldn't work as expected.
|
Would getting the caching-offset be impossible to get by the video-processor? If that would be accessible, one could just correct it themselves.
(Probably too easy thinking on my side, I guess )
|
|
|
02-25-2019, 02:30 AM
|
#14
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
I confirm gmem new reascript solution isn't reliable enough toget playstate.
See how playstate is only updated on stop IF the cursor is moved.
Code: https://forum.cockos.com/showpost.ph...86&postcount=9
Too bad :/
Tweaking cache options didn't solve the issue.
|
|
|
02-25-2019, 10:52 AM
|
#15
|
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
This is, as the videoprocessor-script is only run, when the video updates at some point.
Have you tried using the ui_get_state-function? This allows getting the ui-states even when play is stopped, if the corresponding parameter is set. Maybe, this affects also other parts of the videoprocessor-script as well...
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 03:03 PM.
|