How to stay in current pose if no animation sequence is provided?

I have a variable called “IsRunning” and it is connected to a “Blend Poses by bool” node as such:

When it becomes false how do I stay in the current pose (freeze frame) instead of reverting back to default TPose ?

Note: There can be any pose plugged into “Blend Poses by bool” I’ve only added running sequence as to keep the question simple

output

Hi @mrm_dev,

You can do this through a Sequence Evaluator node and an OnUpdate function.


The AnimGraph is very simple - just use a Sequence Evaluator with your sequence instead of a Sequence Player.


In the details of the Sequence Evaluator Node you’ll set:

  1. A +Create Binding in the dropdown for OnUpdate. This will create a new function.
  2. The Sequence you want to play
  3. Set Explicit Time to Dynamic so that the function will be able to update the value.


I also created a new float variable called Accumulated Time that we’ll use to manually keep track of what frame the animation sequence should be on.

Finally, in the function, use the logic above. It’s checking if your IsRunning variable is true, and if so, adding time to the accumulated time variable and updating the frame of the animation. If your IsRunning variable is false, it won’t change the time, which provides the current pose “freeze frame” effect.

Hope this helps!