How to get the name of current animation from Animation Player while in an Animation Tree?

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

Hi, is that a way to get the name of current animation from an AnimationPlayer when it is been played by an Animation Tree?

I could do it with $AnimationPlayer.current_animation, but if the animation player is controlled by an Animation Tree node, the code no longer works, if always print out nothing instead of the name of current animation. Thank you.

:bust_in_silhouette: Reply From: Inces
$AnimationTree.tree_root.get_node("AnimationNodeName").animation