animation_create
Create a new animation clip in an AnimationPlayer's default library. Specify duration, loop mode, and optionally overwrite existing clips.
Instructions
Create a new Animation clip inside an AnimationPlayer's default library.
After creating the clip, add tracks via animation_manage ops
add_property_track / add_method_track / create_simple.
Track node paths are stored relative to the AnimationPlayer's
root_node (default: its parent), not to the scene root — see
animation_manage preset ops for a forgiving target_path that
accepts either form.
If player_path doesn't resolve, an AnimationPlayer is auto-created
at that path (parent must exist).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Animation clip name (e.g. "idle", "pulse"). | |
| length | Yes | Duration in seconds. | |
| loop_mode | No | "none" (default) | "linear" | "pingpong". | none |
| overwrite | No | Replace an existing animation with the same name. | |
| session_id | No | Optional Godot session to target. Empty = active session. | |
| player_path | Yes | Scene path to the AnimationPlayer node. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||