add_animation
Add an animation with tracks and keyframes to an existing AnimationPlayer node. Ensure the AnimationPlayer exists first via create_animation_player.
Instructions
Add an animation with tracks and keyframes to an existing AnimationPlayer node. To create the AnimationPlayer itself, use create_animation_player first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Whether the animation should loop (default: false) | |
| length | No | Animation length in seconds (default: 1.0) | |
| tracks | No | Animation tracks with keyframes | |
| nodePath | Yes | Path to the AnimationPlayer node | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory | |
| animationName | Yes | Name of the animation to create |