sprite sheet maker
Make Sprite Batch Settings Independent of a Previous Job in the Same Process
A batch exporter that prepares several sprites in one process can pick up settings left by an earlier script. The first sheet may look right while the second uses a previous color, scale, or naming rule. Make each job's settings explicit inputs and decide whether the jobs are allowed to share a scripting environment.
Build two test jobs with the same expected output dimensions and different marker colors. Run A alone, B alone, then A and B as consecutive scripts in a single invocation. Reverse that combined order in another run. Compare each job's recorded settings, output name and decoded marker. The shared-process results should match the individual runs. A deliberately bad run can set one default globally before invoking the next script, so the fixture proves it can catch state left by a predecessor.
The technical guide and test fixture documents a LibreSprite 1.3 test where later script arguments can read a global written by an earlier script in the same invocation and a fresh process does not see it. If a tool cannot keep jobs isolated within one process, use separate invocations for those jobs. Scale up only after the two ordering tests agree.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.