[Paraview] change of syntax

Jean Favre jfavre at cscs.ch
Mon Mar 2 18:10:18 EST 2009


The following python code works fine in pv3.4

rep = servermanager.CreateRepresentation(solid, view)
rep.ColorArrayName = 'Temperature'

but gives me an error with the cvs version

   rep.ColorArrayName = 'Temperature'
 File
"/local/apps/ParaView3Build/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 203, in __setattr__
   setter(self, value)
 File
"/local/apps/ParaView3Build/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 2308, in setProperty
   return self.SetPropertyWithName(propName, value)
 File
"/local/apps/ParaView3Build/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 252, in SetPropertyWithName
   prop.SetData(arg)
 File
"/local/apps/ParaView3Build/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 663, in SetData
   for a in self.Available:
 File
"/local/apps/ParaView3Build/Utilities/VTKPythonWrapping/paraview/servermanager.py",
line 519, in __getattr__
   return getattr(self.SMProperty, name)
AttributeError: Available

I must have missed a change being put in. Does someone have a hint?
TIA



More information about the ParaView mailing list