[Paraview] Clearing a selection created in python
Felipe Bordeu
felipebordeu at gmail.com
Thu Sep 14 07:06:08 EDT 2017
Hi, I'm trying to create a selection using python, but I have a little
question
I use this script (as a macro)
source = GetActiveSource()
activeView = GetActiveView()
props = GetDisplayProperties(source,view=activeView)
fieldtype, arrayname = props.ColorArrayName
a = paraview.simple._select(fieldtype[0:-1], arrayname,source)
Render()
this will highlight all the entities (points or cells) with values
different form zero in the current view (this work great)
the only problem is that the clear selection icon ("garbage icon") is
disable and the only way to clear the selection is to create a new
selection (using the mouse) and the clear it using the button.
Any ideas.
thanks
Felipe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170914/f5ded68f/attachment.html>
More information about the ParaView
mailing list