HI Alan,
Selections are indeed possible in Python, though as you have found they are
not recorded in traces.
You should be able to do something like this to select one or more points:
can = GetActiveSource()
# Extract the desired block first
extractBlock = ExtractBlock(Input=can)
extractBlock.BlockIndices = [2]
# Now extract point 1764
pointID = 1764
pointIDs = [0, pointID] # process number, point ID
selection = paraview.simple.IDSelectionSource(ContainingCells=0, FieldType
= "POINT", IDs = pointIDs)
plotSelectionOverTime1 = PlotSelectionOverTime(Input=can,
Selection=selection)
qcv = CreateView('QuartileChartView')
d = Show(plotSelectionOverTime1, qcv)
I hope this helps,
Cory
On Wed, Dec 9, 2015 at 7:29 PM, Scott, W Alan <[email protected]> wrote:
> I am trying to create a python script that will create a plot selection
> over time. Here is what I am trying to do:
>
> · Read in the can.exo. All vars on. Apply
>
> · Select point on can. (This is the line that does not record in
> the Trace Recorder, and I need).
>
> · Plot selection over time (I can’t get here without the previous
> step).
>
>
>
> How is a selection done in Python?
>
>
>
> Thanks,
>
>
>
> Alan
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
--
Cory Quammen
R&D Engineer
Kitware, Inc.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Search the list archives at: http://markmail.org/search/?q=ParaView
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview