[SOLVED]How to get current frame number of animation?

Hi friends

I have a character model with a “walk” animation on it which is animated in blender. Animation length is 30 frames in blender.

Now my question is :
How to get current frame number in JME ?

extra info on why i do need to know current frame number :
so i can sync my SoftBody animation with bone animation.
example: when my character is walking i need to update her hair mesh synchronously based on current frame of animation.

Any help is much appreciated

As far as I know there is no direct way to get the current frame of an animation, but can you use getTime() instead? Might be that it doesn’t work for what you wanna do but maybe you can give it a try.

1 Like

Thanks a lot @Domenic :grinning:
I could solve it with getTime().

1 Like

Nice :grinning:

1 Like