Run Aseprite Command Sequence
aseprite_command_sequenceRun Aseprite commands in sequence via Lua to automate sprite editing, animation, and export. Supports opening files and saving the active sprite.
Instructions
Run Aseprite app.command.(params) actions through Lua, optionally opening files and saving the active sprite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for Aseprite commands. | |
| batch | No | Run with --batch. Keep true for headless automation. | |
| dryRun | No | Return generated Lua without running Aseprite. | |
| saveAs | No | Save app.activeSprite after the command sequence. | |
| actions | Yes | ||
| timeoutMs | No | Command timeout in milliseconds. | |
| inputFiles | No | Sprites/images opened before executing commands. | |
| scriptAfter | No | Lua code inserted after command execution. | |
| asepritePath | No | Path to the Aseprite executable. Defaults to ASEPRITE_PATH or PATH discovery. | |
| scriptBefore | No | Lua code inserted before command execution. | |
| validateKnownCommands | No | Reject command IDs not in the bundled upstream command list. |