<div dir="ltr">Hey guys,<div><br></div><div>Just a bump in case anyone who can answer my question missed this. Basically, is it possible to specify two input array drop down menus in a Custom Filter XML file and get the array information from both? I can get two drop down menus in the Properties panel, but can only get information from one of them.</div><div><br></div><div>Thanks,</div><div>Evan Kao</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 5, 2016 at 10:08 AM, Evan Kao <span dir="ltr"><<a href="mailto:tossin@gmail.com" target="_blank">tossin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey all,<div><br></div><div>I'm trying to create a custom filter (using vtkPythonProgrammableFilter) that allows the user to specify two input arrays (the XML file is attached). As a guide, I mimicked the XML specifications for the Glyphs filter in the filters.xml file. The filter appears as it should, but I can't seem to access the information for the second data array:</div><div><br></div><div>Request Data code:</div><div><br></div><div><div><font face="monospace, monospace"> print 'ArrayInfo1'</font></div><div><font face="monospace, monospace"> print self.GetInputArrayInformation(<wbr>0)</font></div><div><font face="monospace, monospace"> print 'ArrayInfo2'</font></div><div><font face="monospace, monospace"> print self.GetInputArrayInformation(<wbr>1)</font></div></div><div><br></div><div>Console output (after generating a sphere):</div><div><br></div><div><p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)">ArrayInfo1</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)">vtkInformation (0000000015E2FD30)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Debug: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Modified Time: 866729</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Reference Count: 2</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Registered Events: (none)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> INPUT_PORT: 0</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> INPUT_CONNECTION: 0</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> FIELD_ASSOCIATION: 0</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> FIELD_NAME: Normals</span></p>
<p style="margin:0px;font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"><br></p>
<p style="margin:0px;font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"><br></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)">ArrayInfo2</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)">vtkInformation (0000000015E47D80)</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Debug: Off</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Modified Time: 868190</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Reference Count: 2</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,128,0)"> Registered Events: (none)</span></p></div><div><br></div><div>No matter how I change the second array, there is no FIELD_NAME or FIELD_ASSOCIATION associated with it. Am I accessing it incorrectly? Did I prescribe it incorrectly in the XML file?</div><div><br></div><div>Thanks,</div><div>Evan Kao</div><div><br></div></div>
</blockquote></div><br></div>