[Paraview] Clearing a selection created in python

Cory Quammen cory.quammen at kitware.com
Thu Oct 5 14:56:06 EDT 2017


Felipe,

I can confirm this behavior, and I have filed a bug report here:

https://gitlab.kitware.com/paraview/paraview/issues/17749

Thanks,
Cory

On Thu, Sep 14, 2017 at 4:06 AM, Felipe Bordeu <felipebordeu at gmail.com>
wrote:

> 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
>
>
>
> _______________________________________________
> 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
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171005/226ff332/attachment.html>


More information about the ParaView mailing list