Answers for "Copy Merged Scale aseprite"

0

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()
Posted by: Guest on July-27-2021

Browse Popular Code Answers by Language