[Paraview] Python programmable filter with two source inputs (in paraview 3.2)

David E DeMarle dave.demarle at kitware.com
Thu Oct 25 11:05:50 EDT 2007

For example insert a sphere source and a cone source.
Click on one and then CTRL-Click on the other in the PipelineBrowser.
Insert a Programmable filter.

This script gets both inputs and prints the number of points in them.
in1 = self.GetInputDataObject(0,0)
in2 = self.GetInputDataObject(0,1)
print in1.GetNumberOfPoints()
print in2.GetNumberOfPoints()

On 10/25/07, Sylvester Gerardson <sylvester.gerardson at gmail.com> wrote:
> Hi list,
> Is it possible (when using a programmable filter) to use two source inputs?
> For example a cutplane and a stream tracer?
> How would you call the two streams?
>  pdi1 = self.GetInput(1)
>  pdi2 = self.GetInput(2)
> Or something similar?
> Any help would be greatly appreciated.
> Sylvester
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview

More information about the ParaView mailing list