No, it's not possible to write a python programmable filter with multiple output ports. The number of output ports needs to be set in the constructor of the class itself which is too early to be able to set by the user from the panel for any filter. Workaround is producing a multi-block.
Utkarsh On Mon, Apr 19, 2010 at 10:05 AM, Favre Jean <[email protected]> wrote: > Hello > > Can one write a Python Programmable Filter with multiple outputs? > > I tried the obvious self.SetNumberOfOutputPorts(2), which complained, and in > any case, I wonder how it would interact with the GUI option which defines > the output Data Set Type. Since there is a single option, I guess I wouldn't > be able to define two different ports with different types. > > Another output option would be a CompositeDataSet with 2 datasets, but it > seems the GUI does not let me define the output type to be > vtkCompositeDataSet? > > Am I forced to go back to a C++ filter? > > ----------------- > Jean M. Favre > Swiss National Supercomputing Center > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
