Copy / mirror a region
aseprite_copyCopies a rectangular pixel region to another position, layer, or frame, with optional flip and undo as one step.
Instructions
Copies a rectangle of pixels, optionally flipped, to another position, layer or frame (one undo step). Without x/y it writes back in place, so flip='h' mirrors the region where it is. Symmetry example on a 16px-wide sprite: rect [0,0,8,16], flip 'h', x 8 mirrors the left half onto the right half.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Destination left edge (default: source x) | |
| y | No | Destination top edge (default: source y) | |
| flip | No | h = mirror left/right, v = top/bottom | none |
| rect | Yes | Source [x, y, width, height] or "selection" | |
| frame | No | Destination frame (default: fromFrame, else active frame) | |
| layer | No | Destination layer (default: fromLayer, else active layer) | |
| fromFrame | No | Source frame (default: active frame) | |
| fromLayer | No | Source layer (default: active layer) | |
| skipTransparent | No | Leave destination pixels alone where the source is transparent |