Get Cursor position during playback?

dust wrote on 5/24/2004, 10:31 AM
Hi all,

Is there a possibility to get the cursor position from within a script when the script was called DURING playback? Vegas.Cursor seems to return the cursor position at the start of a playback. I am speaking of the situation when you start playback in the timeline (by pressing Space) and then immediately call a script instead of stopping playback first (Enter). I also tried to change the "Make spacebar and F12 Play/Pause instead of Play/Stop", but this doesn't change the situation; Vegas.Cursor always returns the cursor position where playback was started.

Thanks, Andy

Comments

johnmeyer wrote on 5/24/2004, 10:43 AM
Does playback continue once a script is executed?
dust wrote on 5/24/2004, 11:52 AM
No, of course not. But when the script starts, the cusor jumps back to the point where playback started instead of remaining where it is at the time of script invokation.
jetdv wrote on 5/24/2004, 12:12 PM
What if you change the Play/Stop preference to Play/Pause instead?
dust wrote on 5/24/2004, 12:46 PM
I already tried that, as I mentioned in my first posting. It doesn't have any effect.
roger_74 wrote on 5/24/2004, 1:24 PM
Actually, Vegas.Cursor gets the position of the cursor that stays put when you press play. Look closely, there are two lines.
dust wrote on 5/24/2004, 10:44 PM
I know, and this is the location where the cursor jumps back as soon as the script starts. I'm just wondering if there's a way to find out the location of the "second" (the running) cursor from within the script, and be it by getting the time difference between the time when you pressed "play" and invoked the script (which would be quite an inaccurate method of course ;-)
jetdv wrote on 5/25/2004, 2:33 PM
Why not just pause and then run the script?
dust wrote on 5/26/2004, 2:38 AM
Because this means an additional keystroke which interrupts the flow :-) I know it can be solved using Macroexpress or similar; I just wondered if there's a more direct way. Also I found the fact that the "running" cursor position is not available from within scripts worth mentioning - that is if my assumption is correct.