Vegas 11 - Manage Timeline cursor

NicoM wrote on 1/15/2014, 7:05 AM
Hello,

I'd like to manage Timeline cursor in an aplication extension, but
I am surprised of the API behaviour.

Here is the way I use to get cursor position :

public void InitializeModule ( Vegas vegas )
{
var myCursorPosition = vegas.Transport.CursorPosition;
...


My problem is I get a TimeCode which is not consistent with what I see in Vegas.

For instance I get '00:00:00,000', but visualy the cursor is at '-00:01:44,838'.
(and also written in the text box 'Cursor Position CTRL+G')
How can this be possible ?

Thanks

Comments

Gary James wrote on 1/15/2014, 11:45 AM
What is your current Time Format set to? For example: Time & Frames.

(Right-click on the large cursor position time value just above the topmost track header and select Time Format).



Try changing this to something else, and then back again.
NicoM wrote on 1/17/2014, 4:27 AM
Hello,

Ok, I understood the origin of my confusion.
vegas.Transport.CursorPosition

versus
vegas.Transport.PlayCursorPosition


The first one allow us to set a new start position for play, while the second is the real visual cursor position.

Thanks
Gary James wrote on 1/17/2014, 7:55 AM
I'm curious how this created a negative timeline indication in status message area?
NicoM wrote on 1/21/2014, 3:01 AM
Yes that was surprising, but since I use your tip, switch to 'Time & Frames', I did not get the problem again.

For information 'SMPTE Non-Drop (29.97, video)' was selected.