sprite_measure
Get precise sprite frame measurements—bounding box, cap, waist, and canon rows—to prevent positional errors when placing objects relative to a sprite.
Instructions
Measure a sprite's anatomy per frame and its cross-frame jitter: bounding box, top row, widest row, cap (head) width, waist (neck) row, and — with canon regions — the first row of each region (e.g. where the face starts). Use before placing anything relative to a sprite: measured rows beat guessed proportions. Real bug this catches: a hat brim placed at '52% of head height' landed exactly on the eyes, because eye rows vary per frame — measure, don't assume.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | PNG / GIF / spritesheet | |
| cellH | No | spritesheet cell height (PNG sheets only) | |
| cellW | No | spritesheet cell width (PNG sheets only) | |
| canonPath | No | path to sprite-canon.json (default: search upward from the target file) |