<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Thanks, that works.</p>
<p><br>
</p>
<p>Mark<br>
</p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Utkarsh Ayachit <utkarsh.ayachit@kitware.com><br>
<b>Sent:</b> Tuesday, November 21, 2017 4:40 PM<br>
<b>To:</b> Messner, Mark Christian<br>
<b>Cc:</b> paraview@paraview.org<br>
<b>Subject:</b> Re: [Paraview] Input multiple arrays for processing in ProgrammableFilter</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">Mark,<br>
<br>
Add another property on the filter and add `default_values="1"`<br>
attribute it. For example see this [1].<br>
<br>
Utkarsh<br>
<br>
[1] <a href="https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/filters.xml#L5759-5780" id="LPlnk384813" previewremoved="true">
https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/filters.xml#L5759-5780</a>
<div id="LPBorder_GT_15113070845350.47649644681157877" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15113070845300.043309443513824375" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15113070845320.35752193636022034" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15113070845320.3650174612878966"></div>
<div id="LPTitle_15113070845320.3856244189199268" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15113070845330.4033629160287223" style="text-decoration: none;" href="https://gitlab.kitware.com/paraview/paraview/blob/master/ParaViewCore/ServerManager/SMApplication/Resources/filters.xml#L5759-5780" target="_blank">ParaViewCore/ServerManager/SMApplication/Resources/filters.xml
· master · ParaView / ParaView</a></div>
<div id="LPMetadata_15113070845340.18091094679830022" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
gitlab.kitware.com</div>
<div id="LPDescription_15113070845350.6392845088515422" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Parallel Data Analysis and Visualization Application based on VTK.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
<br>
On Tue, Nov 21, 2017 at 3:34 PM, Messner, Mark Christian<br>
<messner@anl.gov> wrote:<br>
> Following the example in the wiki<br>
> (<a href="https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list_with_values_from_input_arrays" id="LPlnk605264" previewremoved="true">https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list_with_values_from_input_arrays</a>)
<div id="LPBorder_GT_15113070835300.7362041257785665" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15113070835220.8424377607218204" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15113070835240.0724858765513634" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15113070835240.06548689954511555"></div>
<div id="LPTitle_15113070835240.5229745423587413" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15113070835260.6271427988165607" style="text-decoration: none;" href="https://www.paraview.org/Wiki/ParaView/Plugin_HowTo#Drop_down_list_with_values_from_input_arrays" target="_blank">ParaView/Plugin HowTo - KitwarePublic</a></div>
<div id="LPMetadata_15113070835270.6734025167726503" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.paraview.org</div>
<div id="LPDescription_15113070835280.15404916481499364" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Introduction. ParaView comes with plethora of functionality bundled in: several readers, multitude of filters, quite a few different types of views etc.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
> I can add a dropdown to my xml plugin to grab an array to process with a<br>
> programmable filter. But I want to process two arrays. How can I do this?<br>
> It's obviously related to the "idx" parameter of SetInputArrayToProcess in<br>
> vtkAlgorithm but I can't figure out how to make the paraview GUI cooperate.<br>
><br>
><br>
> Thanks,<br>
><br>
><br>
> Mark<br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" id="LPlnk687368">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a><br>
><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>