How to position the cursor in the timeline ?
Willy2
Posts: 175
With a script, I would like to know how to position the cursor in the timeline.
For example, if I defined 100 frames in the timeline, how do I position the cursor at frame 72 ?
Indeed, for the Genesis character, I want to insert animations at certain positions of the timeline.
Comments
DzScene has a setTime( time ) method, so you'd multiply the frame you want by the time step and set the time to that value.
Thank you very much Richard, for your answer.
Personally, I think in terms of frame.
As I use 30 frames per second, the frame number allows me to determine the time that has passed.
But there is perhaps a subtlety which I did not understand well.
By consulting the forum, I found what I was looking for.
It was the command Scene.setFrame (frame_number) {...} that allowed me to do what I wanted.
Initially, I was surprised by the presence of the parentheses { } but I quickly understood the interest of this notation.