aseprite_set_tag
Create or update a named animation tag over a frame range so game engines export it as a separate animation. Define playback direction, repeat count and color for each tag.
Instructions
Create or update a named animation tag spanning a frame range (e.g. "walk" frames 0-5). Tags are what game engines export as separate animations, and users can play them in the Aseprite timeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Zero-based frame index (omit for the first frame). | |
| from | Yes | Zero-based frame index (omit for the first frame). | |
| name | Yes | Tag name, e.g. "idle", "walk", "attack". | |
| color | No | Colour as hex: '#rrggbb', '#rrggbbaa', '#rgb', '#rgba', '#rrggbb@aa', or a name (black, white, red, green, blue, yellow, cyan, magenta, orange, purple, pink, gray, brown). | |
| repeat | No | Repeat count (0 = loop forever). | |
| document | No | Document to act on: a short name inside the art folder ("hero"), a relative path, or an absolute .aseprite path. Omit to use the active document. | |
| direction | No | Playback direction. |