<HTML>
<HEAD>
<TITLE>Set/GetInputArrayToProcess with 2 input ports</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I am writing a filter that will compare array values from two objects. The filter is set up with two input ports. I would like the user to choose an array from each object for the filter to compare. I am successful in retrieving the two objects and the first array, but the second array is invalid. I&#8217;m not sure if my issue is with the XML or the code.<BR>
<BR>
XML:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><FONT COLOR="#9B3510"><FONT SIZE="1"><FONT FACE="Menlo Regular"><SPAN STYLE='font-size:8.5pt'>&lt;</SPAN></FONT></FONT></FONT><FONT SIZE="1"><FONT FACE="Menlo Regular"><SPAN STYLE='font-size:8.5pt'>InputProperty name=<FONT COLOR="#7F33BE">&quot;Input&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;port_index=&quot;0&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;command=&quot;SetInputConnection&quot;<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>ProxyGroupDomain name=<FONT COLOR="#7F33BE">&quot;groups&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Group name=<FONT COLOR="#7F33BE">&quot;sources&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Group name=<FONT COLOR="#7F33BE">&quot;filters&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>ProxyGroupDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>DataTypeDomain name=<FONT COLOR="#7F33BE">&quot;input_type&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>DataType value=<FONT COLOR="#7F33BE">&quot;vtkDataSet&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>DataType value=<FONT COLOR="#7F33BE">&quot;vtkCompositeDataSet&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>DataTypeDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>InputArrayDomain name=<FONT COLOR="#7F33BE">&quot;input_array&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Property name=<FONT COLOR="#7F33BE">&quot;SelectInputScalars&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function=&quot;FieldDataSelection&quot;<FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>InputArrayDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the first input.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>InputProperty<FONT COLOR="#9B3510">&gt;<BR>
</FONT> <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>InputProperty name=<FONT COLOR="#7F33BE">&quot;Input2&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;port_index=&quot;1&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;command=&quot;SetInputConnection&quot;<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>ProxyGroupDomain name=<FONT COLOR="#7F33BE">&quot;groups&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Group name=<FONT COLOR="#7F33BE">&quot;sources&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Group name=<FONT COLOR="#7F33BE">&quot;filters&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>ProxyGroupDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>DataTypeDomain name=<FONT COLOR="#7F33BE">&quot;input_type&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>DataType value=<FONT COLOR="#7F33BE">&quot;vtkDataSet&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>DataType value=<FONT COLOR="#7F33BE">&quot;vtkCompositeDataSet&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>DataTypeDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>InputArrayDomain name=<FONT COLOR="#7F33BE">&quot;input_array&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Property name=<FONT COLOR="#7F33BE">&quot;SelectInput2Scalars&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;function=&quot;FieldDataSelection&quot;<FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>InputArrayDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the second input.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>InputProperty<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>StringVectorProperty name=<FONT COLOR="#7F33BE">&quot;SelectInputScalars&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;command=&quot;SetInputArrayToProcess&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number_of_elements=&quot;5&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element_types=&quot;0 0 0 0 2&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label=&quot;Input Array&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animateable=&quot;0&quot;<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>ArrayListDomain name=<FONT COLOR="#7F33BE">&quot;array_list&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attribute_type=<FONT COLOR="#7F33BE">&quot;Scalars&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Property name=<FONT COLOR="#7F33BE">&quot;Input&quot;</FONT> function=<FONT COLOR="#7F33BE">&quot;Input&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>ArrayListDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>FieldDataDomain name=<FONT COLOR="#7F33BE">&quot;field_list&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Property name=<FONT COLOR="#7F33BE">&quot;Input&quot;</FONT> function=<FONT COLOR="#7F33BE">&quot;Input&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>FieldDataDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select the array.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>StringVectorProperty<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>StringVectorProperty name=<FONT COLOR="#7F33BE">&quot;SelectInput2Scalars&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;command=&quot;SetInputArrayToProcess&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number_of_elements=&quot;5&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element_types=&quot;0 0 0 0 2&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;default_values=&quot;0 1&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label=&quot;Input 2 Array&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;animateable=<FONT COLOR="#7F33BE">&quot;0&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>ArrayListDomain name=<FONT COLOR="#7F33BE">&quot;array_list&quot;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;attribute_type=<FONT COLOR="#7F33BE">&quot;Scalars&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Property name=<FONT COLOR="#7F33BE">&quot;Input2&quot;</FONT> function=<FONT COLOR="#7F33BE">&quot;Input&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>ArrayListDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>FieldDataDomain name=<FONT COLOR="#7F33BE">&quot;field_list&quot;</FONT><FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Property name=<FONT COLOR="#7F33BE">&quot;Input2&quot;</FONT> function=<FONT COLOR="#7F33BE">&quot;Input&quot;</FONT><FONT COLOR="#9B3510">/&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>RequiredProperties<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>FieldDataDomain<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Select the array.<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>Documentation<FONT COLOR="#9B3510">&gt;<BR>
</FONT> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9B3510">&lt;/</FONT>StringVectorProperty<FONT COLOR="#9B3510">&gt;<BR>
<BR>
</FONT></SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>C++:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><FONT COLOR="#4A820F"><FONT SIZE="1"><FONT FACE="Menlo Regular"><SPAN STYLE='font-size:8.5pt'>// get the info objects<BR>
</SPAN></FONT></FONT></FONT><FONT SIZE="1"><FONT FACE="Menlo Regular"><SPAN STYLE='font-size:8.5pt'> &nbsp;vtkInformation* inInfo1 = inputVector[<FONT COLOR="#2B21D5">0</FONT>]-&gt;GetInformationObject(<FONT COLOR="#2B21D5">0</FONT>);<BR>
&nbsp;&nbsp;vtkInformation* inInfo2 = inputVector[<FONT COLOR="#2B21D5">1</FONT>]-&gt;GetInformationObject(<FONT COLOR="#2B21D5">0</FONT>);<BR>
<BR>
&nbsp;&nbsp;<FONT COLOR="#4A820F">// get the input objects (should be of the same type)<BR>
</FONT> &nbsp;vtkDataObject *inObj1 = inInfo1-&gt;Get(vtkDataObject::DATA_OBJECT());<BR>
&nbsp;&nbsp;vtkDataObject *inObj2 = inInfo2-&gt;Get(vtkDataObject::DATA_OBJECT());<BR>
<BR>
&nbsp;&nbsp;<FONT COLOR="#9F35A1">if</FONT> (inObj1-&gt;GetDataObjectType() != inObj2-&gt;GetDataObjectType())<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkErrorMacro(&lt;&lt; <FONT COLOR="#B23D25">&quot;Inputs are different types.&quot;</FONT>);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9F35A1">return</FONT> <FONT COLOR="#2B21D5">1</FONT>;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
<BR>
&nbsp;&nbsp;<FONT COLOR="#4A820F">// cast inputs to correct type<BR>
</FONT> &nbsp;<FONT COLOR="#9F35A1">if</FONT> (vtkDataSet::SafeDownCast(inObj1))<BR>
&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkDataSet* input1 = vtkDataSet::SafeDownCast(inObj1);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkDataSet* input2 = vtkDataSet::SafeDownCast(inObj2);<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkDataArray* inArray1 = <FONT COLOR="#9F35A1">this</FONT>-&gt;GetInputArrayToProcess(<FONT COLOR="#2B21D5">0</FONT>, input1);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkDataArray* inArray2 = <FONT COLOR="#9F35A1">this</FONT>-&gt;GetInputArrayToProcess(<FONT COLOR="#2B21D5">0</FONT>, input2);<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9F35A1">if</FONT> (!inArray1)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vtkErrorMacro(&lt;&lt; <FONT COLOR="#B23D25">&quot;Bad inArray1.&quot;</FONT>);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9F35A1">return</FONT> <FONT COLOR="#2B21D5">1</FONT>;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkDebugMacro(&lt;&lt; <FONT COLOR="#B23D25">&quot;Array 1: &quot;</FONT> &lt;&lt; inArray1-&gt;GetName());<BR>
&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9F35A1">if</FONT> (!inArray2)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vtkErrorMacro(&lt;&lt; <FONT COLOR="#B23D25">&quot;Bad inArray2.&quot;</FONT>);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#9F35A1">return</FONT> <FONT COLOR="#2B21D5">1</FONT>;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
&nbsp;&nbsp;&nbsp;&nbsp;vtkDebugMacro(&lt;&lt; <FONT COLOR="#B23D25">&quot;Array 2: &quot;</FONT> &lt;&lt; inArray2-&gt;GetName());<BR>
<FONT COLOR="#9B3510"><BR>
</FONT> &nbsp;&nbsp;&nbsp;...<BR>
&nbsp;&nbsp;&nbsp;&nbsp;}<BR>
<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Am I using the Set/GetInputArrayToProcess functions correctly with regards to the input ports? Should I instead use helper functions that pass the names of the two selected arrays and retrieve them from the objects?<BR>
<BR>
Thanks in advance for any insight,<BR>
Kevin<BR>
</SPAN></FONT>
</BODY>
</HTML>