Scprit of "replace color" cannot replace color

Hello!
(ver 1.3.14.4-x64)
I want to replace color in many aceprite files automatically, so I use script below.

app.command.ReplaceColor {
ui=true,
channels=FilterChannels.INDEX,
from=Color{index=14},
to=Color{index=26},
tolerance=0
}

Then, UI of replace color appear (because ui parameter is true).
However, “Ignore color and alpha component” ( at the red box in figure below ) disturb replacing color.

This situation cannot be changed with UI parameter false in the script.
With usual manual call of replacing color UI, “modify color and alpha component” is designated at the same red box, so this problem does not occur.

Now, script of replacing color cannot change color without UI manipulation of mouse click change from “ignore” to “modify”.
If solution of the problem exists, please tell me.
for the time being, I will use combination of scripts and mouse click. Automatic color designation with script is grateful.

Hi @T_K. Please update Aseprite and try again.

1 Like

@Gasparoken
Thank you for reply !
I use v1.3.15.3-x64, however situation do not change.
I’m so sorry, I find my overlook in setting.

Sprite color mode is “RGB Color (picture below)”.
My script use “indexed“.

I change this mode “Indexed”.
Then, script successfully change color.
Under the mode, UI appearing has new button “indexed (modify index component)”, which is default active, and may enable color change.

1 Like