# Deactivate the reset of graphical properties

**URL:** https://discourse.paraview.org/t/deactivate-the-reset-of-graphical-properties/17149
**Category:** ParaView Support
**Created:** [September 3, 2025, 9:06am UTC](https://discourse.paraview.org/t/deactivate-the-reset-of-graphical-properties/17149 "2025-09-03T09:06:22Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Captain\_Convergence](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/c/e19b73/32.png) [@Captain\_Convergence](https://discourse.paraview.org/u/Captain_Convergence)
#### Post date: [September 3, 2025, 9:06am UTC](https://discourse.paraview.org/t/deactivate-the-reset-of-graphical-properties/17149/1 "2025-09-03T09:06:22Z")

</div>

Dear support,

I am struggling with the management of the visualization properties in my script as the graphical properties get set to default or lose their value when changing the visibility. I am using the “visibility“ method to hide/show the filters and colorbars (i.e. UColorBar.Visibility = 1, cutplaneDisplay.Visibility = 0)

I set the following properties in the color transfer functions to display the variables:

`U_CTF = GetColorTransferFunction(‘U’)`  
`U_CTF.ApplyPreset(‘Rainbow Desaturated’, True)`  
`U_CTF.RescaleTransferFunction(5,25)`  
`U_CTF.RescaleOnVisibilityChange = 0`

`p_CTF = GetColorTransferFunction(‘p’)`  
`p_CTF.ApplyPreset(‘Fast’, True)`  
`p_CTF.RescaleTransferFunction(-100,100)`  
`p_CTF.RescaleOnVisibilityChange = 0`  
`Render()`

And it works fine:

 ![03_isoRight_streamlines](https://discourse.paraview.org/uploads/default/original/3X/7/8/78e484cfec8d8dc1fa4e747dbe02b9a364ce2efa.jpeg)

But then I hide them to manage other elements in the scene and when I display them, the velocity display is fine but the pressure contour has changed its range:

 ![03_isoRight_streamlines](https://discourse.paraview.org/uploads/default/original/3X/2/1/21846f9fcea22ebf96d7eb7602c8dc14bd40adab.jpeg)

I have a similar issue with the cutplanes:

`CPtotCTF = GetColorTransferFunction(‘CPtot’)`  
`CPtotCTF.ApplyPreset(‘Rainbow Desaturated’, True)`  
`CPtotCTF.NumberOfTableValues = 301 # Number of discrete colors`  
`CPtotCTF.RescaleTransferFunction(0,0.95)`  
`CPtotCTF.RescaleOnVisibilityChange = 0`  
`CPtotCTF.EnableOpacityMapping = 1`  
`CPtotOTF = GetOpacityTransferFunction(‘CPtot’)`  
`CPtotOTF.Points = [`  
`-1.0, 1.0, 0.5, 0.0,`  
`0.95, 1.0, 0.5, 0.0,`  
`0.95, 0.0, 0.5, 0.0,`  
`1.0, 0.0, 0.5, 0.0`  
`]`

`UnormCTF = GetColorTransferFunction(‘Unorm’)`  
`UnormCTF.ApplyPreset(‘Fast’, True)`  
`UnormCTF.RescaleTransferFunction(0,0.95)`  
`UnormCTF.RescaleOnVisibilityChange = 0`  
`UnormCTF.EnableOpacityMapping = 1`  
`UnormOTF = GetOpacityTransferFunction(‘Unorm’)`  
`UnormOTF.Points = [`  
`-1.0, 0.95, 0.5, 0.0,`  
`0.95, 0.95, 0.5, 0.0,`  
`0.95, 0.0, 0.5, 0.0,`  
`1.0, 0.0, 0.5, 0.0`  
`]`

It should look like this:

 ![03_isoRight_cutplanes](https://discourse.paraview.org/uploads/default/original/3X/0/5/05becbbeb722c9fe57f834cd675b91c85c88496e.jpeg)

But it looks like this after hidind and showing it:

 ![03_isoRight_cutplates](https://discourse.paraview.org/uploads/default/original/3X/1/c/1c3cb54ab71cb3754f4e30a9d3ef498f21a226ff.jpeg)

The quick solution is to set everytime the graphical display of these filters at the display time but it leads to a messy code as I like to create all the filters at the beginnig, set the right display properties and then manage the visibility later on.

Is there any way to completely disable the update/reset of graphical properties of filters/color bars? I am using ParaView 6.0 but this occurs too in Paraview 5.13.2.

Thank you in advance for your time!
