Reset an actor

What is the best way of resetting an actor to its original state? After stoping an animation loop, I want the actor to go back to the way it looked before I started the animation, not just stop at the current frame. Havent figured out a way to use Pose, since the animation-model does not have a frame that looks exactly like the model itself. I feel there should be a real easy way to do this or a better solution, and there probably is, but I just cant find it. The only way it works like I want it to, is if I load and unload the animations each time I want them started or stopped.


def start():
       actor.loadAnims({"run":"model/model-run"})      
       actor.loop("run")
      
def stop():
      actor.stop()
      actor.unloadAnims({"run":"model/model-run"}) 

This just doesnt seem right. Help would be appreciated, thanks.

I know its not the best way but you can use actor.detachNode()


def start():
       actor = Actor.Actor('Model Path')
       actor.loadAnims({"run":"model/model-run"})      
       actor.loop("run")
      
def stop():
      actor.stop()
      actor.unloadAnims({"run":"model/model-run"})
      actor.detachNode()
      start()

or you use the pose function
actor.pose(‘Animation Name’, FrameNumber)

In general, you will want an animation that contains the base pose that you want, or even a full idle animation. Then you can just loop the idle animation after the other action finishes