Find out what frame an animation clip is on

Find out what frame an animation clip is on

cjess
Enthusiast Enthusiast
375 Views
1 Reply
Message 1 of 2

Find out what frame an animation clip is on

cjess
Enthusiast
Enthusiast

Hi~

I would like to know what frame an animation clip is on, either while playing or when paused.

getCurrentFrame()

is only for the main timeline and does not allow for specifying a clip.

 

Anything like

getCurrentFrame(clipName)

or

clipName.getCurrentFrame()

doesn't work. Would be great to know though!

Does anyone have thoughts on this?

Thanks

-Chris

0 Likes
376 Views
1 Reply
Reply (1)
Message 2 of 2

cjess
Enthusiast
Enthusiast
Let me clarify:
When pressing play in the Clip Maker and then using
print getCurrentFrame()
in the Terminal it will return the current frame of the clip that is playing.
But when triggering a Clip via python from the Terminal or from a Variant Set getCurrentFrame() will always return 0.0 or worse something like -5.811452865600586e-06
Maybe this is because it's looking at the time line of the main window and not the Clip Maker?
0 Likes