aseprite_add_frames
Insert empty frames into an Aseprite timeline before, after, or at the end of a reference frame, then draw into each new frame to build animations.
Instructions
Insert empty frames. Frame indices are 0-based. Use mode to control where they land relative to an existing frame. Frames start empty, so draw into each one afterwards (aseprite_draw accepts a frame argument).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Place after `index` (default), before it, or at the end of the timeline. | |
| count | No | How many frames to add (default 1). | |
| index | No | Reference frame (default 0). | |
| 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. | |
| durationMs | No | Frame duration in milliseconds (default 100). |