Change Color Palette in Python

Hi,

I’m trying to make a script to take several screenshots, the script works fine but I cannot change the Palette in the script. I can change the color palette to a predefined one through the LoadPalette function, but I cannot make individual changes. Is there a way to change individual values of the color palette through python, such as the Foreground Color?

Thanks

like this ?

colorPalette = GetSettingsProxy('ColorPalette')
colorPalette.Edges = [1.0, 0.3333333333333333, 0.0]