<div dir="ltr">Fellas,  can someone please point me to examples (current as of v5.0.1) of how a PythonProgrammableFilter accesses the values of properties entered via a DropDownList on the filter's Properties panel....<div><br></div><div>I have written a Python programmable filter which extracts user-specified field arrays from user-specified blocks of multiple (MultiBlock) input datasets.  I use this to perfrom statistical analysis of values from many different simulatyions.</div><div>The filter works fine when the field array names and block numbers are hardcoded in the script.</div><div>.  </div><div>Then I used Pat Marion's python_filter_generator.py to wrap the filter in XML and allow these values to be entered via TextBoxes in the Properties panel.   That also works fine.  The property TextBoxes are accessible to the Python script and I can retrieve the user-entered values.</div><div><br></div><div>Then I attempted to change the field array input widget from a textbox to a DropDownList of cell arrays with checkboxes for selection, following the example in <a href="http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list">http://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list</a>.  The DropDownList does appear correctly, populated correctly, along with checkboxes for selecting items from the list.  However when I hit Apply I get the following error:</div><div>     </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">ERROR: In C:\bbd\5105004d\build\paraview\src\paraview\ParaViewCore\ServerImplementation\Core\vtkPVSessionCore.cxx, line 390</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">vtkPVSessionCore (00000000036E8610): Object type: vtkPythonProgrammableFilter, could not find requested method: "SetCellArrayStatus"</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">or the method was called with incorrect arguments.</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1"><br></font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">while processing</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">Message 0 = Invoke</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">  Argument 0 = vtk_object_pointer {vtkPythonProgrammableFilter (000000000D1BCCD0)}</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">  Argument 1 = string_value {SetCellArrayStatus}</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">  Argument 2 = string_value {cellInputs}</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">  Argument 3 = int32_value {0}</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1"><br></font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">ERROR: In C:\bbd\5105004d\build\paraview\src\paraview\ParaViewCore\ServerImplementation\Core\vtkPVSessionCore.cxx, line 391</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">vtkPVSessionCore (00000000036E8610): Aborting execution for debugging purposes.</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1"><br></font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">ERROR: In C:\bbd\5105004d\build\paraview\src\paraview\ParaViewCore\ServerImplementation\Core\vtkSIProxy.cxx, line 134</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><font face="monospace, monospace" size="1">vtkSISourceProxy (000000000A29BFE0): Error pushing property state: CellArrayStatus</font></blockquote></blockquote><div><br></div><div>I looked at the examples in <span style="color:rgb(0,0,0);font-family:monospace,Courier;font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)">ParaView/ParaViewCore/ServerManager/SMApplication/Resources/readers.xml </span><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif">as suggested, but nowhere do I see examples of how a Python script accesses the user's selections (only examples of the XML code is shown, not the Python scripts).  I also perused the site-packages subdirectory of my installation, but those are all compiled Python and of no help.</font></span></div><div><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif">I'm sure if I just see some Python code examples I can get this working.  I have attached my filter if that helps...</font></span></div><div><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif">many thanks for your help.</font></span></div><div><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif"><br></font></span></div><div><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif">Dean Neumann</font></span></div><div><span style="color:rgb(0,0,0);font-size:12.7px;line-height:1.1em;background-color:rgb(249,249,249)"><font face="arial, helvetica, sans-serif">CEO, Malaspina Lans Inc</font></span></div><div> </div></div>