Change Canvas size programatically

I need this too, I want to resize canvas automatically but I can’t seem to change it’s parameters. Btw, you can see what parameters it’s using here: aseprite/src/app/commands/cmd_canvas_size.cpp at main · aseprite/aseprite · GitHub
I just started scripting Aseprite today, so I’m not sure if I’m missing something.
I tried this but it doesn’t work:

app.command.CanvasSize
{
ui=false,
left=0,
rigth=w,
top=0,
bottom=h,
trimOutside=false
}

2 Likes