Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Feature Requests

Reply
 
Thread Tools Display Modes
Old 08-04-2018, 04:10 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default 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.
X-Raym is offline   Reply With Quote
Old 08-04-2018, 05:40 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

+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.
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-05-2018, 06:58 AM   #3
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@mespotine
Have you tried sprintf( new_variable_str, "%d", variable_num ), where %d is the format (can be other format, like %f) ?
X-Raym is offline   Reply With Quote
Old 08-05-2018, 12:30 PM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Thanx, I'll try it out
Meo-Ada Mespotine is offline   Reply With Quote
Old 08-18-2018, 07:13 AM   #5
svijayrathinam
Human being with feelings
 
Join Date: May 2017
Posts: 981
Default

This will help in many ways.. Bump
svijayrathinam is offline   Reply With Quote
Old 08-20-2018, 04:02 AM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

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.
X-Raym is offline   Reply With Quote
Old 08-20-2018, 04:04 AM   #7
svijayrathinam
Human being with feelings
 
Join Date: May 2017
Posts: 981
Default

Quote:
Originally Posted by X-Raym View Post
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?
svijayrathinam is offline   Reply With Quote
Old 08-20-2018, 04:20 AM   #8
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@svijayrathinam
How do you do that ?
X-Raym is offline   Reply With Quote
Old 08-20-2018, 04:59 AM   #9
svijayrathinam
Human being with feelings
 
Join Date: May 2017
Posts: 981
Default

Quote:
Originally Posted by X-Raym View Post
@svijayrathinam
How do you do that ?
Pls check out the attached link..There is an action for that


https://drive.google.com/open?id=1bK...vSJ9we82EwMFUO
svijayrathinam is offline   Reply With Quote
Old 08-20-2018, 05:39 AM   #10
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@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.
X-Raym is offline   Reply With Quote
Old 08-20-2018, 05:57 AM   #11
svijayrathinam
Human being with feelings
 
Join Date: May 2017
Posts: 981
Default

Quote:
Originally Posted by X-Raym View Post
@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
svijayrathinam is offline   Reply With Quote
Old 10-29-2018, 03:23 PM   #12
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

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.
Justin is offline   Reply With Quote
Old 10-30-2018, 10:52 AM   #13
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Quote:
Originally Posted by Justin View Post
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 )
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 02-25-2019, 02:30 AM   #14
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

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.
X-Raym is offline   Reply With Quote
Old 02-25-2019, 10:52 AM   #15
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

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...
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:03 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.