How to access an animation using .travel()

Hello!

I have been using the AnimationStateMachine inside of the AnimationTree Node a lot lately and I have made a little thing based on a tutorial where I use the .travel() method to switch animations inside the AnimationStateMachine, which has been working great.

What is the syntax though for accessing animations that are in an AnimationStateMachine inside my Root AnimationStatemachine?



image

i would like to play the animation Idle_02 inside the Idle AnimationStatemachine
doing .travel(“Idle/Idle_02”) does not work, nor does just doing “Idle_02”

Thank you

I have figured it out

First I needed to define a new playback parameter for the statemachine inside the statemachine

image

And then I need to move the playback into the statemachine before moving it inside of the statemachine

image

1 Like