[Paraview] Representation
Luca Cinquepalmi
cinquepalmi at planetek.it
Wed Jun 1 10:39:37 EDT 2011
Hi all,
I'm trying to load a vtk file in Paraview using a simple python script.
My script is:
from paraview.simple import *
obj =
OpenDataFile("/home/luca/3dVoxView/Volumes_Storage/geostat_interp/Vol.vtk")
obj.Representation = 'Volume'
servermanager.SaveState("/home/luca/3dVoxView/Volumes_Storage/geostat_interp/prova.pvsm")
but when I run my script this error appears:
Traceback (most recent call last):
File "paraviewProj.py", line 3, in <module>
obj.Representation = 'Volume'
File
"/home/luca/3dVoxView/PARAVIEWWEB/build-paraview/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py",
line 207, in __setattr__
"to add this attribute.")
AttributeError: Attribute Representation 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 does it mean? what's wrong in obj.Representation='Volume' ? Thank
you for any suggestion...
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110601/738669b1/attachment.htm>
More information about the ParaView
mailing list