With 5.1.2, try this:

>>> view = GetActiveView()

>>> sources = GetSources().values()

>>> for aSource in sources:

...     Hide(aSource, view)


Utkarsh






On Tue, Aug 8, 2017 at 1:05 PM, Amelia Launspach <amylaunsp...@gmail.com>
wrote:

> Using paraview 5.1.2, thats a bummer
>
> On Tue, Aug 8, 2017 at 12:03 PM, Utkarsh Ayachit <
> utkarsh.ayac...@kitware.com> wrote:
>
>> What version of ParaView  are you using? `simple.HideAll` has been
>> supported since 5.2.
>>
>> On Tue, Aug 8, 2017 at 12:39 PM, Amelia Launspach <amylaunsp...@gmail.com
>> > wrote:
>>
>>> Hi everyone,
>>>
>>> I'm trying to hide all pipeline objects on my view. My paraview.simple
>>> does not have a "HideAll" so I'm not sure how to do this. The following
>>> methods have not worked for me:
>>>
>>> def HideAll(view=None):
>>>
>>> """Hide all pipeline sources in the given view.
>>>
>>> If view is not specified, active view is used."""
>>>
>>> if not view:
>>>
>>> view = active_objects.view
>>>
>>> controller = servermanager.ParaViewPipelineController()
>>>
>>> controller.HideAll(view)
>>>
>>>
>>> paraview.simple.HideAll()
>>>
>>>
>>>
>>> Does anyone know how I could accomplish this?
>>> Seems simple enough but nothing is working😟
>>>
>>> Thanks,
>>> Amy
>>>
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
_______________________________________________
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

Reply via email to