GDScript: Export AnimationPlayer list?

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

Hi…,

I export my animation list by typing the animation names in the export keyword, like this:

export( String, "move x", "move up", "slope" ) var animation_name = "move x"

func _ready():
    $AnimationPlayer.play( animation_name )

When I add animations, I have to edit the export in GDscript.

Can I get this list from the $AnimationPlayer, and tell it to the export keyword automatically?

Thanks

Mike