Ase Run Lua
ase_run_luaRun custom Aseprite Lua scripts in batch mode to automate pixel-art editing tasks, with optional sprite loading and printed output capture.
Instructions
Execute arbitrary Aseprite Lua in batch mode - the escape hatch when no dedicated tool fits (full API: https://www.aseprite.org/api/). One script can batch many operations into a single Aseprite launch.
Essentials: when sprite_path is given it is opened first and bound to a local 'spr' (also app.activeSprite); changes are NOT saved automatically - call spr:saveAs(spr.filename) at the end; print() is the only way to return data (captured in the result's output list); do NOT end the script with a top-level return (it skips the completion marker and the call is reported as failed). Cel-image coordinates are cel-local: offset sprite-global coordinates by cel.position.
WARNING: executes unrestricted Lua (including io/os access) on the host running Aseprite. Only pass scripts you trust.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| sprite_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||