pvpython error: Attribute <AttributeName> does not exist
Whenever I try to set an attribute of the 'Clip' filter in pvpython (such as Position or Scale), I get the following message:
AttributeError: Attribute does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.
What can I do about this? I am running a script that was generated as a trace while using the Paraview GUI. I get this error even if I run the pvpython script using exactly the same data set.
This is the entire error message:
Traceback (most recent call last):
File "get_clip2.py", line 80, in <module>
clip1.ClipType.Position = [-10.0, 0.0, 0.0]
File "/turquoise/usr/projects/hpcsoft/toss3/grizzly/paraview/5.4.0-osmesa_gcc-6.4.0_openmpi-2.1.2/lib/paraview-5.4/site-packages/paraview/servermanager.py", line 453, in __setattr__
"to add this attribute.")
AttributeError: Attribute Position does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want to add this attribute.