<div dir="ltr">Alan,<div><br></div><div>Oops, clicked 'Send' too fast. You don't really need the extract block part. Try this instead:</div><div><br></div><div>
<p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">can = GetActiveSource()</span></p><p style="margin:0px;text-indent:0px"><span style="font-family:Courier;color:rgb(0,0,0)">pointID = 1764</span></p><p style="margin:0px">

</p><p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">pointIDs = [0, pointID] # process, id</span></p></div><div>
<p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">selection = IDSelectionSource(ContainingCells=0, FieldType = "POINT", IDs = pointIDs)</span></p><p style="margin:0px;text-indent:0px"><span style="font-family:Courier;color:rgb(0,0,0)">plotSelectionOverTime1 = PlotSelectionOverTime(Input=extract,</span></p><p style="margin:0px">

</p><p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">    Selection=selection)</span></p><p style="margin:0px;text-indent:0px"><span style="font-family:Courier;color:rgb(0,0,0)">qcv = CreateView('QuartileChartView')</span></p><p style="margin:0px">

</p><p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">d = Show(plotSelectionOverTime1, qcv)</span></p><p style="margin:0px"><br></p><p style="margin:0px"><font face="arial, helvetica, sans-serif">Thanks,</font></p><p style="margin:0px"><font face="arial, helvetica, sans-serif">Cory</font></p></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 18, 2015 at 10:02 AM, Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.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">HI Alan,<div><br></div><div>Selections are indeed possible in Python, though as you have found they are not recorded in traces.<br><div><br></div><div>You should be able to do something like this to select one or more points:</div><div><br></div><div><p class="MsoNormal"><span style="font-family:Courier;color:black">can = GetActiveSource()</span></p><p class="MsoNormal"><span style="font-family:Courier;color:black"><br></span></p><p class="MsoNormal"><font color="#000000" face="Courier"># Extract the desired block first</font></p><p style="margin:0px;text-indent:0px"><font face="monospace, monospace">extractBlock <span style="color:rgb(102,102,102)">=</span> ExtractBlock(Input<span style="color:rgb(102,102,102)">=</span>can)</font></p><p class="MsoNormal">



</p><pre style="margin-top:0px;margin-bottom:0px"><font face="monospace, monospace">extractBlock<span style="color:rgb(102,102,102)">.</span>BlockIndices <span style="color:rgb(102,102,102)">=</span> [<span style="color:rgb(102,102,102)">2</span>]</font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="monospace, monospace"><br></font></pre><pre style="margin-top:0px;margin-bottom:0px"><font face="monospace, monospace"># Now extract point 1764</font></pre><p class="MsoNormal"><span style="font-family:Courier;color:black">pointID = 1764</span></p><p class="MsoNormal"><span style="font-family:Courier;color:black">pointIDs = [0, pointID] # process number, point ID</span></p><p class="MsoNormal"><span style="font-family:Courier;color:black">selection = paraview.simple.IDSelectionSource(ContainingCells=0, FieldType = "POINT", IDs = pointIDs)</span></p><font face="monospace, monospace">plotSelectionOverTime1 = PlotSelectionOverTime(Input=can,<br>    Selection=selection)</font></div><div>
<p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">qcv = CreateView('QuartileChartView')</span></p>
<p style="margin:0px"><span style="font-family:Courier;color:rgb(0,0,0)">d = Show(plotSelectionOverTime1, qcv)</span></p><font face="monospace, monospace"><br></font><pre style="margin-top:0px;margin-bottom:0px"></pre><p class="MsoNormal" style="font-size:12.8px"><span style="font-size:8.5pt;font-family:Courier;color:black"><br></span></p><p class="MsoNormal" style="font-size:12.8px">I hope this helps,</p><p class="MsoNormal" style="font-size:12.8px">Cory</p><p class="MsoNormal" style="font-size:12.8px"><br></p></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 9, 2015 at 7:29 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I am trying to create a python script that will create a plot selection over time.  Here is what I am trying to do:<u></u><u></u></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u>Read in the can.exo.  All vars on.  Apply<u></u><u></u></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u>Select point on can. (This is the line that does not record in the Trace Recorder, and I need).<u></u><u></u></p>
<p><u></u><span style="font-family:Symbol"><span>·<span style="font:7.0pt "Times New Roman"">        
</span></span></span><u></u>Plot selection over time (I can’t get here without the previous step).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">How is a selection done in Python?  <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<span><font color="#888888"><u></u><u></u></font></span></p><span><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Alan<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>

<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><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="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>