I might be just missing something obvious, but I can't seem to find a way to reset a models animation back to its original state once its finished playing. Is there a simple way of doing this?
Not quite what I was after. I don't want the animation to play again, just put it back to its unplayed state.
Say I have an animation of a car door opening that starts with the door closed and finishes with it fully open. What I want to be able to do is set the animation so it is stopped at its door closed state - ie the beginning of the animation - without it playing again.
Hi Eva. stop() just effectively pauses the animation at the frame it got to. I'm looking for a way to put it back to frame zero without the animation playing again, putting the model back to the state it was before any animation played.
Thanks for that. I think it would be a very useful.
I have already played around with the stop/start/stop work around, but I've found that calling the methods immediately after each other, the last stop call doesn't get picked up and the animation plays regardless.
For anyone else that might be having this trouble the only way I've found to get this to work is to put the animation stop call in a separate method and then call it with a timeout of 100. ie:
resetAnimation: function resetAnimationFn()
stopAnimation: function stopAnimationFn()