[Paraview] Iterate over all selected objects in pipeline browser?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Mar 3 13:08:47 EST 2014


Yves,

I believe this should do the trick:

from paraview import simple
print simple.active_objects.get_selected_sources()

Utkarsh

On Thu, Feb 20, 2014 at 8:37 AM, Yves Frederix
<yves.frederix+pv at gmail.com> wrote:
> Hi all,
>
> I was wondering if it is possible to somehow access the list of
> currently selected objects in the ParaView pipeline browser from
> python. I have found that it is possible to access the (single) active
> source using GetActiveSource(), but haven't found a solution to
> iterate over all of the items in case multiple objects are selected.
> Does this functionality exist?
>
> Many thanks!
>
> Best regards,
> Yves
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list