sprite sheet maker
Block a Sprite Export Before an Empty Document Reaches the Script
Give an automated sprite export a machine-readable receipt for the document it actually opens. If a wrapper assembles an argument list in the wrong order, the edit script can run before its input is loaded. A PNG left from a previous run can then make the job look productive.
Make document identity part of the export result
In a disposable workspace, build a red and a blue source file with the same dimensions. Run the intended script on each and have it write the active filename and one sample pixel alongside the delivery. Compare the receipt to the manifest for that job before accepting the result. Then deliberately reverse the input and script order and require the wrapper to reject the missing document without promoting any PNG. Start these tests in fresh output folders so the test process cannot pick up a receipt from a previous job.
The technical guide and test fixture contains a native LibreSprite 1.3 check in which loading the ASE file first changes what app.activeSprite reports inside the script. Use that distinction to design a preflight that still catches a wrong input with a convincing filename or size.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.