[Paraview] delete all applied filters from pipeline

pat marion pat.marion at kitware.com
Wed Apr 20 10:29:49 EDT 2011


delete all filters without deleting the readers/sources:

for f in GetSources().values():
    if f.GetProperty("Input") is not None:
        Delete(f)


Pat


On Wed, Apr 20, 2011 at 9:49 AM, Fabian Braennstroem
<f.braennstroem at gmx.de>wrote:

> Hello,
>
> I am looking for a way to remove all applied filters from the pipeline
> except the loaded data (e.g. ensight or openfoam).
>
> If one know, the filter before, I can do it like this:
>
> Slice1 = FindSource("Slice1")
> DataRepresentation3 = GetDisplayProperties(Slice1)
> Slice2 = FindSource("Slice2")
> DataRepresentation4 = GetDisplayProperties(Slice2)
> SurfaceVectors1 = GetActiveSource()
> DataRepresentation5 = GetDisplayProperties(SurfaceVectors1)
> Glyph1 = FindSource("Glyph1")
> DataRepresentation6 = GetDisplayProperties(Glyph1)
> Plane1 = FindSource("Plane1")
> DataRepresentation7 = GetDisplayProperties(Plane1)
> Delete(DataRepresentation7)
> Delete(Plane1)
> ExtractBlock1 = FindSource("ExtractBlock1")
> Delete(ExtractBlock1)
> Delete(DataRepresentation6)
> Delete(Glyph1)
> Delete(DataRepresentation5)
> Delete(SurfaceVectors1)
> Delete(DataRepresentation4)
> Delete(Slice2)
> Delete(DataRepresentation3)
> Delete(Slice1)
>
> but is there a way to list all applied filters, which then could be delete
> in the right order?
>
> Best Regards
> Fabian
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110420/14cc9b4a/attachment.htm>


More information about the ParaView mailing list