[Paraview] Python Programmable Filter

Jacques Papper jacques.papper at gmail.com
Thu Nov 13 06:03:07 EST 2008


Hi Berk,

I am trying out your suggestion of merging arrays :

input0 = self.GetInputDataObject(0,0)
input1 = self.GetInputDataObject(0,1)
output = self.GetOutputDataObject(0)
output.GetPointData().AddArray(input0.GetPointData().GetArray("pressure1"))
output.GetPointData().AddArray(input1.GetPointData().GetArray("pressure2"))

but I get the following error message :

  File "<string>", line 2, in <module>
  File "<string>", line 4, in RequestData
AttributeError: GetPointData

I also tried just using the programmable filter on one source and with the
following code, and  I get the same error :

input0=self.GetInputDataObject(0,0)
input0.GetPointData()

I am using version 3.4.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081113/7290319a/attachment-0001.htm>


More information about the ParaView mailing list