clear
Erase a layer's cel to transparent or fill it with a color across whole cels, rectangles, frames, or selections.
Instructions
Clears a layer's cel(s) to transparent (or fills with a color): whole cel, a rect, or the selected area.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last frame of a range | |
| tag | No | Use the frames of this tag | |
| from | No | First frame of a range | |
| rect | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| color | No | '#rrggbb', '#rrggbbaa', a name, a palette index, or {r,g,b,a} / {h,s,v,a} / {h,s,l,a} / {gray,a} | |
| frame | No | 1-based frame number. Defaults to the active frame (or 1). | |
| layer | No | Layer name, 'Group/Child' path, or 1-based index from get_sprite_info. Defaults to the active layer. | |
| frames | No | 'all' or a list of frame numbers | |
| sprite | No | File path, open tab title, or sprite id. Defaults to the active sprite (live). Batch mode needs a file path. | |
| backend | No | auto (default): live Aseprite if connected, else headless batch | |
| useSelection | No |