Cels
celManage one layer's image per animation frame in Aseprite: create, move, link, tween, or oscillate artwork to animate limbs and static parts without redrawing.
Instructions
Manage cels — one layer's image on one frame. Ops: 'list', 'create', 'clear', 'delete', 'move', 'copy', 'link', 'unlink', 'set' (position/opacity), 'tween', 'oscillate'. '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. 'tween' interpolates position or opacity between two frames with an easing curve; 'oscillate' adds a sinusoidal position offset over a frame range — both fill in any missing in-between cels from the start cel, in one transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Cel origin, for 'set' and 'move'. | |
| y | No | ||
| dx | No | Relative move. | |
| dy | No | ||
| op | Yes | ||
| to | No | For 'tween': end value — {x,y} for property 'position', 0-255 for 'opacity'. | |
| frame | No | 1-based frame number. Omit to use the active frame. | |
| layer | No | Layer name. Omit to use the active layer. | |
| phase | No | For 'oscillate': 0-1 fraction of one period. | |
| easing | No | For 'tween'. | linear |
| frames | No | For 'link' across a range. | |
| period | No | For 'oscillate', in frames. Default: the whole fromFrame..toFrame span. | |
| 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 | ||
| property | No | For 'tween'. | |
| fromFrame | No | For 'tween'/'oscillate': the start frame. | |
| amplitudeX | No | For 'oscillate'. | |
| amplitudeY | No | For 'oscillate'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cels | No | ||
| frames | No | Only present for 'tween' and 'oscillate': one entry per frame touched, ascending. | |
| sprite | Yes | ||
| applied | No |