Skip to content

Instantly share code, notes, and snippets.

@dacap
Created May 30, 2021 23:34
Show Gist options
  • Save dacap/50092effc978cd3b4e1cd40fbc1075df to your computer and use it in GitHub Desktop.
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
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