Reference image
referenceImport external images as locked, semi-transparent guide layers to trace proportions or sample colors; crop panels or split storyboard grids onto animation frames.
Instructions
Bring an external image into the sprite as a reference layer, so you can trace proportions or sample colours from it. Ops: 'import' (place an image on a locked, semi-transparent layer above the art), 'sample_palette' (read its dominant colours without importing), 'list', 'remove'. A concept sheet or storyboard arrives as one image: region crops one panel of it, and grid cuts it into panels and puts panel i on frame i of a single reference layer, so each animation frame is drawn over its own storyboard panel. Importing at a different size uses nearest-neighbour; a reference scaled down to 32×32 is a guide for proportion and pose, never a finished sprite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| op | Yes | ||
| fit | No | How to size the image (or each panel) against the canvas. | contain |
| grid | No | Import a storyboard: split the (cropped) source into equal panels and place panel i on frame `frame`+i-1 of one reference layer. The sprite must already have enough frames. | |
| name | No | Layer name. Default: 'reference'. | |
| path | No | Image file to read. | |
| frame | No | Import: the frame the image — or the first `grid` panel — lands on. Default: the active frame, or frame 1 with `grid`. | |
| colors | No | For 'sample_palette'. | |
| region | No | Use only this rectangle of the SOURCE image, in its own pixels — one panel of a concept sheet. Applies to 'import' and 'sample_palette'. | |
| sprite | No | Which sprite: its id as '#7' (what every result reports back, and the only unambiguous form — two unsaved documents are both called 'Sprite'), its filename, or its display name. Omit to use the sprite Aseprite has focused. | |
| opacity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| layer | No | ||
| width | No | ||
| frames | No | Import: the frames that received a reference cel. | |
| height | No | ||
| panels | No | Import: how many panels were placed. | |
| sprite | Yes | ||
| palette | No | Dominant colours with their share of the image. | |
| references | No |