I keep getting the error "invalid get index 'parameters/playback(on base: null instance)

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

This is the line of code I keep getting the error. Maybe I did somethin wrong with the animation tree? any advice is appreciated.

onready var _playback: AnimationNodeStateMachinePlayback = animation_tree[“parameters/playback”]

Usually when you get this sort of error, it means that when you defined a variable you are pointing to the wrong node.

Snail0259 | 2021-07-08 15:20

I might be able to help if I see the node layout.

Cogan | 2021-07-09 19:22

Yeah, because it’s a bit difficult to visualise the node layout without an image

Snail0259 | 2021-07-09 20:32