Blend between animations in 3D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Christoffer

Hey guys, so i have an animationplayer and animationtree, everything setup, i can draw the cursor and see how the animation blends between eachother in the editor.
But how do i use it?
i start the animation like this"Walking")
and when i press the run key i just do the same but call the running animation.
therefore i cannot see any blending between the animations occur ?

thanks any help guys!

:bust_in_silhouette: Reply From: imjp94

In order to make the blending in AnimationTree works, you have to play from AnimationTree instead of

But the method to play animation from AnimationTree varies by its implementation, for example, here’s how AnimationTree StateMachine get initiated:

var state_machine = anim_tree["parameters/StateMachine/playback"]"Walking")

You can find more info about controlling AnimationTree from code here