update_layer
Change Aseprite layer properties such as name, visibility, lock, opacity, blend mode, color, parent group, and stack position to manage sprite layer behavior and structure.
Instructions
Changes layer properties: name, visibility, lock, opacity, blend mode, color, data, parent group, stack position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | User data text | |
| name | No | ||
| save | No | Batch mode: write changes back to the sprite file (default true) | |
| color | No | Timeline color | |
| layer | No | Layer name, 'Group/Child' path, or 1-based index from get_sprite_info. Defaults to the active layer. | |
| parent | No | Group layer to move into; '' moves to the top level | |
| 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 | |
| opacity | No | ||
| tileset | No | Tilemap layers: tileset to use | |
| visible | No | ||
| editable | No | false locks the layer | |
| blendMode | No | normal, multiply, screen, overlay, darken, lighten, color_dodge, color_burn, hard_light, soft_light, difference, exclusion, hue, saturation, color, luminosity, addition, subtract, divide | |
| collapsed | No | Group layers only | |
| continuous | No | ||
| properties | No | User-defined properties to set (object.properties) | |
| stackIndex | No | Position among siblings (1 = bottom) |