select
Create or change pixel selections in Aseprite with rectangles, ellipses, polygons, magic wand, or color; modify, move, invert, save, or load them.
Instructions
Creates or changes the selection: rect, ellipse, polygon, magic_wand (point), by_color, all, none, invert, reselect, content (layer pixels), modify (expand/contract/border), move (dx/dy), get, save or load (to/from a .msk or image file). The selection lives only in live mode or inside one run_lua call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dx | No | ||
| dy | No | ||
| file | No | save/load: .msk (Aseprite selection file) or an image (opaque pixels = selected) | |
| mode | No | ||
| rect | No | ||
| brush | No | ||
| 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. | |
| point | No | ||
| action | Yes | ||
| points | No | ||
| 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 | |
| modifier | No | ||
| quantity | No | ||
| tolerance | No | ||
| contiguous | No |