# Operations duplicated when running python script

**URL:** https://discourse.paraview.org/t/operations-duplicated-when-running-python-script/11361
**Category:** ParaView Support
**Created:** [February 9, 2023, 7:19am UTC](https://discourse.paraview.org/t/operations-duplicated-when-running-python-script/11361 "2023-02-09T07:19:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Frankx9](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/f/3e96dc/32.png) [@Frankx9](https://discourse.paraview.org/u/Frankx9)
#### Post date: [February 9, 2023, 7:19am UTC](https://discourse.paraview.org/t/operations-duplicated-when-running-python-script/11361/1 "2023-02-09T07:19:05Z")

</div>

Hi,

I’ve written a python script to do basic post-processing (i.e. extracting a surface) via the tracing method. When I run it I have no problems and the surface gets extracted correctly (i.e. `clip2` in this case) but when I try to unhide `clip2` all the operations in the pipeline are repeated (`Clip` - `CleantoGrid1` - `ExtractSurface1` - `Clip2` ) and given that the `CleantoGrid1` procedure is very slow in my case, I want to avoid this. How I can accomplish that (i.e. creating `Clip2` and when unhiding it I don’t want ParaView to do all the previous filters in the pipeline again - (`Clip` - `CleantoGrid1` - `ExtractSurface1` - `Clip2` )

 ![Screenshot 2023-02-09 at 08.14.07](https://discourse.paraview.org/uploads/default/original/2X/4/497c6f6daf226bf8fbd183a0614b366ac8f8a7f1.png)

Regards

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 9, 2023, 8:10am UTC](https://discourse.paraview.org/t/operations-duplicated-when-running-python-script/11361/2 "2023-02-09T08:10:58Z")

</div>

Hi @Frankx9

Could you share your script ?

Best,

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 9, 2023, 12:38pm UTC](https://discourse.paraview.org/t/operations-duplicated-when-running-python-script/11361/4 "2023-02-09T12:38:53Z")

</div>

I’m unable to reproduce, please provide precise steps to reproduce.
