Change actor battler motion [SOLVED]

[EDIT: SOLVED!!] Hey RPG Maker friends,

I have an event happening mid-battle where I would like the actor battler motion to briefly change into another motion. (victory pose)
This is easily done by:

Code:
$gameActors.actor(id).requestMotion('victory');

However, afterwards, he should change into the motion which he had before - could be sleeping, walking, guard pose...
How could I do this?

I tried it with Yanfly X Action Sequence Pack 2, but it didn't work.
I also tried two things I found in rpg_objects.js:

Code:
$gameActors.actor(id).requestMotionRefresh();
$gameActors.actor(id).clearMotion();

or

$gameActors.actor(id).requestMotionRefresh;
$gameActors.actor(id).clearMotion;

but neither of them worked. The battler just stays in the victory pose forever.....
Anyone got an idea how to do this?!
OH I figured it out! I just had to use all of them to reset the motion:


Code:
        $gameActors.actor(x).requestMotion('walk');
        $gameActors.actor(x).requestMotionRefresh();
        $gameActors.actor(x).clearMotion();

Case closed!!!!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/change-actor-battler-motion-solved.112994/