<html><head><style>body{font-family:Helvetica,Arial;font-size:14px}</style></head><body style="word-wrap:break-word;line-break:after-white-space">Hi there,<div><br></div><div>I see an old thread here: <a href="https://paraview.markmail.org/thread/z7cy73444s7fjadk">https://paraview.markmail.org/thread/z7cy73444s7fjadk</a> about setting multiple input ports for python programmable filters but I cannot get this to work.</div><div><br></div><div>I want to declare multiple input ports in a ServerManagerConfiguration XML plugin but I have been unable to successfully add more than one input port to the vtkPythonProgrammableFilter.</div><div><br></div><div>I see that in `paraview/ParaViewCore/ClientServerCore/Core/vtkPythonProgrammableFilter.h` the following is declared:</div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>  /**</div></div><div><div>   * Set the number of input ports</div></div><div><div>   * This function is explicitly exposed to enable a vtkClientServerInterpreter to call it</div></div><div><div>   */</div></div><div><div>  void SetNumberOfInputPorts(int numberOfInputPorts) VTK_OVERRIDE</div></div><div><div>  {</div></div><div><div>    this->Superclass::SetNumberOfInputPorts(numberOfInputPorts);</div></div><div><div>  }</div></div></blockquote><div><br></div><div>This leads me to believe that the functionality is there, but how exactly would I set the number of input ports from an XML plugin for a Programmable Filter? I have tried the following with no luck:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><ServerManagerConfiguration></div></div><div><div> <ProxyGroup name="filters"></div></div><div><div>   <SourceProxy </div></div><div><div><span class="Apple-tab-span" style="white-space:pre">     </span>name="TestMuliPort” </div></div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span>class="vtkPythonProgrammableFilter” </div></div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span>label=“TestMuliPort”</div></div><div><div><span class="Apple-tab-span" style="white-space:pre">      </span>post_creation=“SetNumberOfInputPorts"</div></div><div><div><span class="Apple-tab-span" style="white-space:pre">  </span>arguments="2”></div></div><div>……..</div></blockquote><div><br></div><div>I get the following ERROR:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>ERROR: In /Users/kitware/dashboards/buildbot-slave/8275bd07/build/superbuild/paraview/src/ParaViewCore/ServerImplementation/Core/vtkPVSessionCore.cxx, line 371</div></div><div><div>vtkPVSessionCore (0x60c0000d4510): Object type: vtkPythonProgrammableFilter, could not find requested method: "SetNumberOfInputPorts"</div></div><div><div>or the method was called with incorrect arguments.</div></div><div><div><br></div></div><div><div>while processing</div></div><div><div>Message 0 = Invoke</div></div><div><div>  Argument 0 = vtk_object_pointer {vtkPythonProgrammableFilter (0x60c0003abde0)}</div></div><div><div>  Argument 1 = string_value {SetNumberOfInputPorts}</div></div></blockquote><div><br></div><div><br></div><div>Any help would be greatly appreciated,</div><div><br></div><div>Bane</div><div><br></div><div><br></div></body></html>