[Paraview] PlotSelectionOverTime filter in python

Andy Bauer andy.bauer at kitware.com
Thu Mar 26 15:49:49 EDT 2015


Hi Paul,

This should get tracked in the Python Trace functionality. I'll add a bug
report for this. For now you can do it manually with something like:
>>> w = Wavelet()

>>> selection = SelectCells(query="id==0")

>>> ec = ExtractSelection(Selection=selection)

>>> ec.UpdatePipeline()


This should select the first cell of the Wavelet source and extract it. For
point selection replace SelectCells with SelectPoints. There's probably
more complex selections for multiblock data sets but talking to you I
thought you had an unstructured data set. For the query string, you can see
how more complex queries are created in the Find Data option under the Edit
menu.


Let me know if this doesn't work for you.


Cheers,

Andy


On Thu, Mar 26, 2015 at 3:28 PM, Paul DesJardin <ped3 at buffalo.edu> wrote:

> Hi,
>
> I'm trying to use the PlotSelectionOverTime command in a python script
> for use with pvbatch.  When using PlotSelectionOverTime in the GUI,
> there is a "Copy Active Selection" operation required which I cannot
> replicate in the python script.  The incremental trace option doesn't
> appear to provide information since nothing is reported when the the
> "Copy Active Selection" button is pushed.
>
> Any help would be much appreciated.....
>
> Thanks!
>
> Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150326/f63c510a/attachment.html>


More information about the ParaView mailing list