[Paraview] Custom Python plugin with multiple input ports

LB bravo.loic at gmail.com
Fri Jul 15 04:05:53 EDT 2016


Hi Cory,

As I understand, the Python Programmable filter can accept only one input
port, but this port can accept multiple connections. The order of multiple
connections on the same port cannot be controlled by the user.

My filter need two input datasets, but they are not commutable.
The user should be able to set up each input manually.

It seems possible in ParaView when a filter accepts multiple input ports.
For example, the "Resample with Dataset" filter accept two inputs ports and
the "Change input" dialog define an input named 'Source' and an input named
'Input'.

This is exactly what I need.But I don't know how to make a paraview filter
accepting multiples input ports in python:
 - "Python Programmable filter" seems limited to only one input port
 - the vtkPythonAlgorithm seems able to handle multiple input ports, but I
don't know how to use it in ParaView.This vtkPythonAlgorithm seems a good
candidate to respond to the feature request you mentioned.

Do you have any hint two make a ParaView filter with multiple input ports?


Best regards,

-- 
Loïc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160715/5cf87f81/attachment.html>


More information about the ParaView mailing list