CanvasSize Lua API command is innacurate with UI enabled

I’m using Steam version 1.3.7 on windows 10, and I was using this code in a Lua script:

app.command.CanvasSize {

This brings up the GUI in Aseprite, which has the left, right, top and bottom fields automatically set to the parameters passed to the command.
But when I confirm the prompt, the canvas is resized according to the sum of the parameters in the script and the fields present in the GUI.
The same thing happens if I change the fields in the GUI.
I’m assuming this is a bug since this doesn’t seem intended.
(this image is supposed to be animated)

1 Like