[Paraview] Syntax Change setting Representations ColorArrayName Property
Tobias Froebel
tfroebel at gmx.de
Thu Jun 18 04:36:46 EDT 2009
Hello,
I'm encountering a problem with paraview-cvs and paraview-3.6. The
following example from the servermanager documentation worked fine for
me in paraview 3.4
from paraview import servermanger
sm=servermanager
sm.Connect()
cone=sm.sources.ConeSource()
elev=sm.filters.ElevationFilter(Input=cone)
view=sm.CreateRenderView()
rep=sm.CreateRepresenstation(elev,view)
#Now try to colourize the cone
lt=sm.rendering.PVLookupTable()
rep.LookupTable=lt
rep.ColorAttributeType=0 #Point Data
rep.ColorArrayName='Elevation'
At this point the following error message occurs:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/data/local/froebelt/myspace/Projects/ParaView_VTK/ParaView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 203, in __setattr__
setter(self, value)
File
"/data/local/froebelt/myspace/Projects/ParaView_VTK/ParaView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2308, in setProperty
return self.SetPropertyWithName(propName, value)
File
"/data/local/froebelt/myspace/Projects/ParaView_VTK/ParaView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 252, in SetPropertyWithName
prop.SetData(arg)
File
"/data/local/froebelt/myspace/Projects/ParaView_VTK/ParaView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 663, in SetData
for a in self.Available:
File
"/data/local/froebelt/myspace/Projects/ParaView_VTK/ParaView3-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 519, in __getattr__
return getattr(self.SMProperty, name)
AttributeError: Available
Jean Favre describe the same error in Message ParaView Digest, Vol 59,
Issue 3, Message 2.
Any help on this topic would be a great help for me.
Tobias Froebel
--------------------------
Research Assistant CFD
Institute for Flight Propulsion
TU Munich
Germany
More information about the ParaView
mailing list