erase_region
Erase a rectangular region of pixels to transparency in a specified layer and frame of an Aseprite file. Use global coordinates for the region's left, top, width, and height.
Instructions
Erase (make transparent) a rectangular region of pixels.
Coordinates are sprite-global.
Args: filename: Aseprite file to modify layer_name: Layer to operate on frame_index: Frame index starting at 1 x: Left edge of the region y: Top edge of the region width: Region width height: Region height
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| width | Yes | ||
| height | Yes | ||
| filename | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes |