aseprite_tilemap
Read a tilemap cel from an Aseprite document to get tile IDs, flip flags, position, tileset info, and optional tile artwork pixels. Perfect for inspecting tilemap data without altering the layer.
Instructions
Read a tilemap cel as rows of packed tile IDs (low 29 bits=index; high bits=flip flags), cel pixel position, tileset origin/size/count, and optional tile artwork pixels (Indexed: palette indices; RGB: packed RGBA). Read-only, including locked layers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tile | No | Optional tile artwork as raw pixels; Indexed pixels are palette indices. | |
| frame | No | 1-based frame number. | |
| layer | Yes | Layer ID from inspect, or a unique layer name (including a layer added earlier in this batch). | |
| documentId | Yes | Exact document ID returned by inspect/create; never guess it. | |
| expectedRevision | Yes | Revision from the most recent inspect or edit result. Re-inspect if stale. |