[Paraview] Changing colormap parameters in a Catalyst script

2015-10-30 Thread Dorier, Matthieu
Hi, I have generated a Catalyst python script that produces a colormap on a slice of a 3D rectilinear grid. I would like to use the same script for another variable of the simulation, but the range of data is not the same. How can I adapt the script, both in case where I know the new data range

Re: [Paraview] Changing colormap parameters in a Catalyst script

2015-10-30 Thread Cory Quammen
Mattheiu, For rescaling when your data range is known, use: a1_dbz_PiecewiseFunction.RescaleTransferFunction(min, max) a1_dbz_PVLookupTable.RescaleTransferFunction(min, max) When it is unknown, you can use pipelineObject = GetActiveSource() display = GetDisplayProperties(pipelineObject) display

Re: [Paraview] Changing colormap parameters in a Catalyst script

2015-10-30 Thread Dorier, Matthieu
Thanks Cory! Matthieu From: Cory Quammen [cory.quam...@kitware.com] Sent: Friday, October 30, 2015 2:19 PM To: Dorier, Matthieu Cc: Paraview (paraview@paraview.org) Subject: Re: [Paraview] Changing colormap parameters in a Catalyst script Mattheiu, For rescaling