How do you get the Node path to a specific Animation in your animation player ?

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

All I want to do is if specific animation is playing Print(“something”)
but I feel like i’m missing a step or word when typing out the code for the Nodepath to get access to specific animation

if Input.is_action_pressed(“KeyJ”):
anim.set(“parameters/OneShot/active” , 1)
if AnimationTree.anim_player == “Frontkick”:
print(“Something”)

:bust_in_silhouette: Reply From: exuin

How about

animation_player.current_animation == "animation_you're_looking_for"