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-' .. cel.layer.name .. '.png') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment