Hi guys, sorry if this kind of post belongs somewhere else,
but I’ve run into a wall trying to automate a task for generating sprites for my game,
as I have no real experience with Lua scripting.
Essentially I just need to:
crop the canvas width of the original images (a series of animation frames) by 106 pixels on each side
despeckle the image with the default settings, 2 pixels width + 2 pixels height,
resize to 512 x 512 pixels
Can anyone help me out, or can point me in the right direction? I’ve been looking at the API
and tried writing it myself, but I have very little knowledge about how Lua works (I usually code in C#), and feel as if it’s a bit overkill to learn Lua just to automate a few built-in Aseprite tasks
hi, it’s less about learning lua and more about wrestling with api
however, it seems to me that you need this:
crop sprite: app.command.CropSprite, but for that you need to make a selection, so maybe it would be better for you to use app.command.CanvasSize: api/CanvasSize.md at main · aseprite/api · GitHub