How to center the current layer/cel to the canvas?

There are plans to add alignment tools, but at the moment this can be solved with a little script:

local spr = app.activeSprite
local cel = app.activeCel

cel.position = Point(spr.width/2 - cel.bounds.width/2,
                     spr.height/2 - cel.bounds.height/2)
2 Likes