update_slice
Modify slice properties such as bounds, pivot, and color in Aseprite sprites, supporting both live editing and batch processing.
Instructions
Changes a slice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| name | 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} | |
| pivot | No | Pivot relative to the slice; false removes it | |
| slice | Yes | ||
| bounds | No | ||
| center | No | 9-slice center, relative to the slice; false removes it | |
| 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 | |
| properties | No | User-defined properties to set (object.properties) |