Skip to content

Instantly share code, notes, and snippets.

@dacap
Last active December 3, 2019 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacap/c70f3630a3cd24410efd81bd5a048171 to your computer and use it in GitHub Desktop.
Save dacap/c70f3630a3cd24410efd81bd5a048171 to your computer and use it in GitHub Desktop.
Move active layer up/down in Aseprite
local layer = app.activeLayer
if layer then
layer.stackIndex = layer.stackIndex-1
end
local layer = app.activeLayer
if layer then
if app.apiVersion >= 8 then
layer.stackIndex = layer.stackIndex+1
else
-- This is because a bug before v1.2.16.3
layer.stackIndex = layer.stackIndex+2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment