Animation Tree travel function doesn't work

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

Hello, I’m trying to make my animations in an animation tree (State Machine) work but for some reason nothing seems to happen. Here’s my code:

playback = animationTree.get("parameters/playback")
playback.start ("Idle")
if currentAnimation != animationToPlay:
	playback.travel (animationToPlay)

Is there an option I have to change in my Animation Tree or is something wrong with my code?