[Paraview] Python script created by Trace does not work

Oldrich Svec oldrich.svec at gmail.com
Tue Dec 7 04:57:58 EST 2010


Hi,

I have created a very simple python script by Trace tool. I have just
added a Treshold to the data. The script is as follows:

try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

Threshold2 = Threshold()

Threshold2.Scalars = ['POINTS', 'Rho']
Threshold2.ThresholdRange = [0.0, 2300.0]

Render()

When I run the script for the first time, everything works fine. When
I, however, run it once again I obtain an error saying:

Traceback (most recent call last):
 File "<string>", line 5, in <module>
TypeError: 'Threshold' object is not callable

Do you know, what I am doing wrong?

Thank you,
Oldrich Svec


More information about the ParaView mailing list