> The dark side of this patch is that you are limited to one or two inputs
> portsit would be nice to have more flexibility. It would be nice to
> define the number of input ports directly in the XML plugin file.
Yes indeed. This was just a quick hack to demonstrate the
functionality with
Thanks Utkarsh!
It's a neat hack, and it will fit my problem perfectly.
The dark side of this patch is that you are limited to one or two inputs
ports. It would not be possible to create more complex filter like, for
example, the vtkLandmarkTransformFilter (which needs 3 separate input
ports).
The attached patch for vtkPythonProgrammableFilter along with a minor tweak
to your plugin XML does the trick. I can have this cleaned up and merged in
"master" for 5.2 if that's acceptable.
Utkarsh
On Fri, Jul 15, 2016 at 3:20 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:
> Doh! I
Doh! I forgot that the number of ports need to set in the constructor of
the vtkAlgorithm subclass. Grr...let me see if there's a workaround. I'll
get back to you on it.
On Fri, Jul 15, 2016 at 2:37 PM, LB wrote:
> Hi Utkarsh,
>
> Multiple input ports are exactly what I
Hi Utkarsh,
Multiple input ports are exactly what I want.
But I can't get it to work. I've attached my last XML plugin attempt with
different port_index definition.
When I try to use it, I have the following error:
/ParaViewVTK/Common/ExecutionModel/vtkAlgorithm.cxx, line 893
Sorry for chiming in late, but here are some things to note:
* Both Dennis and Cory are talking about multiple connections on the
same input port. This is arguably not too well supported since the
order cannot be determined easily.
* Seems to me you want multiple input ports, each with a single
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
Loïc,
Python Programmable Filter can indeed take more than one input. Select
all the inputs in the Pipeline Browser you want to pass to the
Programmable Filter before you create it. Within the script, you can
access the inputs with
input1 = self.GetInputDataObject(0, 0)
input2 =
Hi,
I would like to make some custom python plugins for ParaView.
I've made one based on a PythonProgrammableFilter with the help of the
Python Filter Generator Script
(https://gitlab.kitware.com/paraview/paraview/snippets/5).
It's working pretty well, but it seems that the