Hi,
I believe we have found an error when trying to use animationGroup.goToFrame. Please see the following example:
https://www.babylonjs-playground.com/#CBGEQX#33
- Press button 1 and it will go to frame 50 as expected.
- Press button 2 and it will play from frame 50 as expected. Let the animation finish.
- Press button 3 and it will go to frame 50 as expected.
- Press button 4 and it will not play from frame 50.
Why is step 4 failing?
We need to be able to jump back and forth between frames and play from there.
Any suggestions?
Hey
This is because the animation is not in loop mode. So the 4th button try to go back in time and because there is no loop, the animation was stopped
Here is your fix:
https://www.babylonjs-playground.com/#CBGEQX#34
(just calling play(true))
Hey,
Thanks for the suggestion, the thing is we don’t want the animation to loop. Is there a way to accomplish this, thanks.
Hi,
I have tried your suggestion, but button 4 does not play the animation
Here is what we would like to do
- After loading scene, jump to a frame and play our animation (not looped).
- Once animation finish, jump to a frame and play our animation again (not looped).
Step 1 works fine, but once we try to repeat it (step 2), it fails. It jumps to somewhere and does not play.
Hi,
No, it does not work. Button 4 doesn’t play the animation