# Change Color Palette in Python

**URL:** https://discourse.paraview.org/t/change-color-palette-in-python/7549
**Category:** ParaView Support
**Tags:** python
**Created:** [July 5, 2021, 12:22pm UTC](https://discourse.paraview.org/t/change-color-palette-in-python/7549 "2021-07-05T12:22:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Msegade](https://discourse.paraview.org/user_avatar/discourse.paraview.org/msegade/32/1201_2.png) [@Msegade](https://discourse.paraview.org/u/Msegade)
#### Post date: [July 5, 2021, 12:22pm UTC](https://discourse.paraview.org/t/change-color-palette-in-python/7549/1 "2021-07-05T12:22:01Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [July 5, 2021, 1:12pm UTC](https://discourse.paraview.org/t/change-color-palette-in-python/7549/2 "2021-07-05T13:12:48Z")

</div>

like this ?

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

```
