Last active
December 3, 2019 22:45
-
-
Save dacap/c70f3630a3cd24410efd81bd5a048171 to your computer and use it in GitHub Desktop.
Move active layer up/down in Aseprite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local layer = app.activeLayer | |
if layer then | |
layer.stackIndex = layer.stackIndex-1 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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