Stepping through the frames of an FBX animation

Is there a way to essentially scrub an FBX animation forward and backwards?

I am trying to create a user control that would allow the end user to do that.

Thanks,

Brian

Hi there Brian!

I made a simple demo of how you could use a scrollbar to scrub through an animation.
https://playcanvas.com/editor/scene/1277869

Is this what you are after?

Cheers!

3 Likes

Brilliant, yes spot on. Thank you kindly!

1 Like

@Francisco_Bozzo Would it be the same using the new anim rather than legacy?

Hi there!

Well, the code would not look completely the same…

But the animComponentLayer has a property for the active state current time
and also a property for active state duration. Which you can use in the same kind of way of the example I uploaded before.

2 Likes