<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>