Hmm, I'm not sure this is the proper way to do it since I get a warning but
it appears to work:
a = GetActiveSource() # requires a leaf of the pipeline tree to be selected
Delete(a)

The warning I get is:
ERROR: In
C:\DBD\pvs-x64\paraview\src\paraview\ParaViewCore\ServerManager\Core\vtkSMProxyListDomain.cxx,
line 189

vtkSMProxyListDomain (0000000012E46ED0): Index 2 greater than max 1


Somewhere in the Python API there's a method to get the filter proxy by
name but I don't remember that off the top of my head. If this doesn't work
for you, Utkarsh probably has a better way :)

Andy



On Tue, Dec 3, 2013 at 8:04 PM, Scott, W Alan <wasc...@sandia.gov> wrote:

> Hi,
> I have a user that is trying to delete all of the entries in the pipeline
> browser, in a python script.  I tried using the trace recorder, and that
> didn't work.  Does anyone have any idea what command would do this?
>
> Thanks,
>
> Alan
>
>
> _______________________________________________
> 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
>
_______________________________________________
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

Reply via email to