add_tag
Add an animation tag to a specified frame range, set its name, color, direction, repeats, and properties, then save changes to the sprite.
Instructions
Adds an animation tag over a frame range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| data | No | ||
| from | No | ||
| name | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| color | No | '#rrggbb', '#rrggbbaa', a name, a palette index, or {r,g,b,a} / {h,s,v,a} / {h,s,l,a} / {gray,a} | |
| aniDir | No | ||
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| repeats | No | 0 = infinite | |
| properties | No | User-defined properties to set (object.properties) |