How to control an AnimationNodeStateMachine with Visual Scripting?

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

I am trying to control my animations with an AnimationTree’s State Machine node. I know that, in GDscript, you just do this:

var state_machine = $AnimationTree.get("parameters/playback")
state_machine.travel("some_state")

but I was wondering how to accomplish this in visual scripting? I’m using visual script because I’m an art guy (I’m not good at coding!) so I just need a simple prototype game so I can test my assets. Any help would be appreciated!