<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Jun 6, 2018 at 9:37 AM Sarah Flaherty <<a href="mailto:sjflaherty@loyola.edu">sjflaherty@loyola.edu</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_3171695578239240015divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0;margin-bottom:0">If it does not show in the trace, is it possible to access those numbers through the python shell?<br></p></div></div></blockquote><div><br></div><div>Alas, the situation is the same.</div><div><br></div><div>As a workaround, you can add a GenerateIds filter to your data to generate point and cell IDs, and add an Extract Selection filter with Preserve Topology on, which generates a 'vtkInsidedness' point and cell array marking which points/cells have been selected. Then, you can add an Append Attributes filter to both the GenerateIds and Extract Selection filters to combine the IDs and vtkInsidedness arrays. Finally, add z Threshold filter and threshold by the vtkInsidedness array. The result will be a data set containing only selected cells and points with the original cell/point IDs. You can then access these IDs through Python.</div><div><br></div><div>Cory</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div id="m_3171695578239240015divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr"><p style="margin-top:0;margin-bottom:0">
Sarah<br>
</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_3171695578239240015divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Cory Quammen <<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>><br>
<b>Sent:</b> Wednesday, June 6, 2018 9:31:41 AM<br>
<b>To:</b> Sarah Flaherty<br>
<b>Cc:</b> <a href="mailto:paraview@public.kitware.com" target="_blank">paraview@public.kitware.com</a>; ParaView<br>
<b>Subject:</b> Re: [Paraview] Fw: How do we get the indexes and IDs from the extracted selections to be seen in the Trace?</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Sarah,
<div><br>
</div>
<div>I'm afraid that selections are not currently well supported in Python. Because of that, they are not recorded in Python traces.</div>
<div><br>
</div>
<div>It is on our todo list to provide a real Python API for selections in one of the next ParaView releases.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Cory</div>
</div>
<br>
<div class="m_3171695578239240015x_gmail_quote">
<div dir="ltr">On Wed, Jun 6, 2018 at 9:17 AM Sarah Flaherty <<a href="mailto:sjflaherty@loyola.edu" target="_blank">sjflaherty@loyola.edu</a>> wrote:<br>
</div>
<blockquote class="m_3171695578239240015x_gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div id="m_3171695578239240015x_m_1024076548058403222divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
Paraview,
<div style="color:rgb(0,0,0)">
<div dir="ltr">
<div id="m_3171695578239240015x_m_1024076548058403222x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<div style="color:rgb(0,0,0)">
<div id="m_3171695578239240015x_m_1024076548058403222x_divRplyFwdMsg" dir="ltr"></div>
<div dir="ltr">
<div id="m_3171695578239240015x_m_1024076548058403222x_x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0;margin-bottom:0">I am trying to have the index of the points that are selected and extracted displayed in the trace. They are seen in the Properties Bar on the right when the ExtractSelection1 is active, however they are not seen in
the trace. How do I get this information into python script or the trace?<br>
Thank you,<br>
Sarah Flaherty<br>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
ParaView discussion is moving! Please visit <a href="https://discourse.paraview.org/" rel="noreferrer" target="_blank">
https://discourse.paraview.org/</a> for future posts.<br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">
http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr" class="m_3171695578239240015x_gmail_signature">Cory Quammen<br>
Staff R&D Engineer<br>
Kitware, Inc.</div>
</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div></div>