Are certain properties just not accessible via script or am I looking in the wrong place?

Godot Version

4.6 stable official

Question

I am trying to access the AnimationNodeAnimation’s timeline_length property via script:

image
But to no result. Some google searches got me to try and print ‘_get_property_list()’ and there were only four other properties for this node printed.
So is this property accessible through script and if so, where? Does the property_list thing actually show all the properties that are accessible via script?

Thanks for helping me out!

ps: I know I could / should use some version of (time)scale nodes and I’m gonna have to redo the animation tree anyway. It would be a quick way of say using a reload_time to set the animation length without doing any conversions for time scaling I think.

AnimationTree can only access runtime parameters which are the parameters the AnimationNode resource exposes to the AnimationTree. If you need to edit the properties of an AnimationNode you’ll need to find that Resource from the AnimationTree.tree_root. Getting them depends on which AnimationNode you are using. For example, if you are using an AnimatioNodeBlendTree then it would be AnimationNodeBlendTree.get_node()

Either way, you should probably use an AnimationNodeTimeScale instead.