[Paraview] Clearing a selection created in python
Felipe Bordeu
felipebordeu at gmail.com
Thu Oct 5 16:25:32 EDT 2017
Thank you!
Le 5 oct. 2017 20:56, "Cory Quammen" <cory.quammen at kitware.com> a écrit :
> 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/046f1968/attachment.html>
More information about the ParaView
mailing list