Cels
celManage animation cels by listing, creating, clearing, deleting, moving, copying, linking, unlinking, or setting position and opacity per layer and frame.
Instructions
Manage cels — one layer's image on one frame. Ops: 'list', 'create', 'clear', 'delete', 'move', 'copy', 'link', 'unlink', 'set' (position/opacity). 'move' is how you shift a whole limb between frames without redrawing it; 'link' shares one image across frames so a static part of a cycle stays in sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Cel origin, for 'set' and 'move'. | |
| y | No | ||
| dx | No | Relative move. | |
| dy | No | ||
| op | Yes | ||
| frame | No | 1-based frame number. Omit to use the active frame. | |
| layer | No | Layer name. Omit to use the active layer. | |
| frames | No | For 'link' across a range. | |
| sprite | No | Which sprite: its id as '#7' (what every result reports back, and the only unambiguous form — two unsaved documents are both called 'Sprite'), its filename, or its display name. Omit to use the sprite Aseprite has focused. | |
| opacity | No | ||
| toFrame | No | ||
| toLayer | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cels | No | ||
| sprite | Yes | ||
| applied | No |