From GUI, color can be set to * Black (or foreground color I guess). How to set it from script? Last color in the list with *
color0_layer.attributes["colorPalette"] = 0
color0_layer.attributes[“colorPalette”] = "*"
Thank you. It worked perfectly.