OSC set playhead at absolute position (in sec)

Post your questions here and we'll all try to help.
Post Reply
mfo
Posts: 350
Joined: Fri Oct 08, 2004 11:48

OSC set playhead at absolute position (in sec)

Post by mfo »

Hi

Of course one can set a clip's playhead position in multiple ways: via selectedClip/transport/position, layers/../transport/position or layers/../clips/../transport/position. Yet in all cases the value is relative: 0..1 .
Is there any way to send an absolute value, like 5sec?

(Alternatively one could do the math of course, but this requires knowing the exact duration of the clip. Which can be polled, but .. extra fuss ..)

User avatar
Arvol
Posts: 2893
Joined: Thu Jun 18, 2015 17:36
Location: Oklahoma, USA

Re: OSC set playhead at absolute position (in sec)

Post by Arvol »

It's just a float value. In Wire you can get get media player clip duration and remap 0-1 that way but for non wire functions you would need to ping the clip via osc with a ? to get the duration and then do a remap externally that way. No in the box solution that I'm aware of atm.

mfo
Posts: 350
Joined: Fri Oct 08, 2004 11:48

Re: OSC set playhead at absolute position (in sec)

Post by mfo »

Thanks.
I was afraid that might be the case.

Post Reply