Created
May 30, 2021 23:34
-
-
Save dacap/50092effc978cd3b4e1cd40fbc1075df to your computer and use it in GitHub Desktop.
Alternative Merge Down version where the resulting layer has the name of the top layer
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 lay = app.activeLayer | |
if not lay then return app.alert "There is no active layer" end | |
app.transaction( | |
function() | |
local name = app.activeLayer.name | |
app.command.MergeDownLayer() | |
app.activeLayer.name = name | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment