Copy Merged Scale aseprite
local d = Dialog("Copy Merged Scaled")
d:number{ id="scale", label="Scale", text="2", focus=true }
:button{ id="ok", text="&OK", focus=true }
:button{ text="&Cancel" }
:show()
local data = d.data
if not data.ok then return end
local scale = data.scale
app.command.CopyMerged()
app.command.NewFile({ ui = false, fromClipboard = true })
local sprCopy = app.activeSprite
app.command.SpriteSize({ ui = false, scale = scale, method = "nearest" })
sprCopy.selection:selectAll()
app.command.CopyMerged()
sprCopy:close()
app.refresh()