aseprite_draw_across_frames
Apply the same drawing operations to multiple animation frames, optionally shifting each by an offset to animate motion. Specify frame indices or omit to draw on all frames.
Instructions
Apply the same set of drawing operations to several frames, optionally shifting them per frame. This is how you animate motion efficiently: describe the moving part once and give each frame an offset.
With no frames argument the ops are drawn on every frame. Pass frames as an array of indices, or of objects like {index:2, dx:3, dy:-1} to move the drawing by (dx, dy) on that frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | Same operation objects as aseprite_draw. | |
| layer | No | Target layer. | |
| frames | No | Frame indices, or {index, dx, dy} objects. Omit to draw on all frames. | |
| 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. |