Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Save each cel/layer of the file in its own file
local sprite = app.activeSprite
for _,layer in ipairs(sprite.layers) do
local cel = layer.cels[1]
if cel then
cel.image:saveAs('layer-' .. .. '.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment