sprite ai
Make AI Sprite Retouch Scripts Respect Protected Guide Layers
A locked guide layer can signal to an artist that registration artwork must stay intact. An automation script may still be able to write its pixels. Treat lock status and layer purpose as explicit preflight inputs in programmatic retouching.
Put two editable destinations in the fixture
Create a production pose layer and a guide layer with a colored corner mark. Lock the guide. Run a small recolor intended for the production pose. Compare known pixels in both images. The pose should change. The guide mark and its placement must remain the same. Try a malformed job that targets the guide and confirm it is rejected before the write.
Avoid relying on a display name alone
When multiple versions of an asset use similar layer names, pair the editable layer identifier with a permitted role. Store the expected guide revision separately. If a protected layer needs to change intentionally, make the operation explicit so downstream tests can distinguish a controlled revision from accidental retouching.
FrameSprite’s technical guide and test fixture demonstrates that LibreSprite’s script behavior differs from what a layer lock alone might imply in the UI.
Prepared by the FrameSprite Workflow Team with AI assistance. Illustrative examples are labeled in the text.