Playing animation frame by frame

Hey everyone,

I was wondering if there is a way to play a single animation of one selected skeleton frame by frame.

I would like to analyze the movement. To do this I will need to pause the animation and, using arrow keys or any other way, iterate through the animation beck and forth.

I was trying to achieve it. I iterated through animation’s tracks and set the time for the selected frame. After that I updated the skeleton world vecotrs.
But unfortunately the position of the bones did not change.

Anyone tried to do such thing before ?

1 Like

Well you can go channel.setTime(yourTime); then animControl.update(0.016f)//simulate a frame at around 60fps
Just make sure you’re not in hardware skinning.
A bit hacky but it should work

1 Like

Hey @nehon,

thanks for suggestions but unfortunately this did not work :frowning:

Any other solutions ?

1 Like

Maybe look into the Cinematic, because I’m pretty sure I already did it . You can go cinematic.setTime(time) and it jumps to that time. You’d just have to jump one second by one second

1 Like

What part didn’t work, exactly? For example, I used setTime() once per frame to force my animations to play at the rate that I want… when I want… and it worked just fine.

1 Like

OK I solved it :slight_smile:

I simply set the channel’s speed to 0 and then applied the proper time of the animation to it.

Worked like a charm.


Ok, I know I’m resurrecting an old thread, but I need this exact solution.

Could you please post the code, if you still have it?