Hi there. I’m new to aseprite scripting and new to posting on forums at all. I would just like to know how to change the pixel format to indexed without it bringing up a ui.
I’ve tried adding ui = false to the parameters without success. I also figured if i filled out every parameter, it wouldn’t need the ui to pop up since there were no questions to ask, but that didn’t work either. Please help, thank you.
welcome, Rezza20. it seems like you shouldn’t need ui parameter at all. i just tried example from api/ChangePixelFormat.md at main · aseprite/api · GitHub in v1.3beta21 and it didn’t show ui.
For those coming across this this in the future: The reason that changePixelFormat
shows the UI sometimes is because the passed in format
is wrong or not found. This can happen for a few reasons:
- Make sure you use the right case for
format
. e.g."rgb"
is correct, but"RGB"
is not, and will show the UI. - Make sure you call the method using
.
and not using:
. e.g.app.command.ChangePixelFormat{format="indexed"}
is correct, butapp.command:ChangePixelFormat{format="indexed"}
is not correct will show the UI.