I’ve been experimenting a bit with creating some very simple scripts, but I can’t figure out how to make one that calls the Import Spritesheet command (skipping the UI menu) and automatically detects and fills in the correct dimensions. The spritesheets I’m working with are horizontal strips with a single animation and can all be easily divided into frames where the width and height are the same.
This was my own attempt, I’m struggling with how to skip the menu and how to send the values to the command:
local sprite = app.activeSprite
app.command.ImportSpriteSheet{
use-ui = false,
x = 0,
y = 0,
width = sprite.height,
height = sprite.height
}