I’ve been able to read the size (x and y) of an image by doing:
local image = app.activeCel.image print("width="..image.width.." height="..image.height)
but it seems that I cannot use
resize on image or cel. It only works on the sprite, but what it resizes is the canvas.
local image = app.activeCel.image image:resize(image.width, image.height*2) ---> field does not exists
local spr = app.activeSprite spr:resize(spr.width, spr.height*2) ---> it resizes canvas only
I’ve searched for info about this in the api, and also tried semi-random things like
Scale() (which is not a real method, I tried it just in case it existed but was not documented XD), but not luck at all
Is there any solution fo rthis? Thanks in advance!