# update all filters to new timestep automatically in python?

**URL:** https://discourse.paraview.org/t/update-all-filters-to-new-timestep-automatically-in-python/16078
**Category:** ParaView Support
**Created:** [January 29, 2025, 1:41pm UTC](https://discourse.paraview.org/t/update-all-filters-to-new-timestep-automatically-in-python/16078 "2025-01-29T13:41:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![otaolafr](https://discourse.paraview.org/user_avatar/discourse.paraview.org/otaolafr/32/3595_2.png) [@otaolafr](https://discourse.paraview.org/u/otaolafr)
#### Post date: [January 29, 2025, 1:41pm UTC](https://discourse.paraview.org/t/update-all-filters-to-new-timestep-automatically-in-python/16078/1 "2025-01-29T13:41:56Z")

</div>

hello,  
I am creating a script and a lot of times while ‘advancing’ the time steps in a loop and saving data that I extract at each time step of different filters using fetch and dsa. my issue/question is:  
how I update ALL existing filters to the current time step correctly?  
right now i am doing this:

```auto
filterForData.UpdatePipeline(timeStep)
for FILTER in filterList:
    FILTER.UpdatePipeline(timeStep)

```

I am running in pvbatch.  
is there a simpler way to do it (specially without needing to define a filterList)?  
thanks in advance

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [January 29, 2025, 4:26pm UTC](https://discourse.paraview.org/t/update-all-filters-to-new-timestep-automatically-in-python/16078/2 "2025-01-29T16:26:01Z")

</div>

Franco,

It’s been a while since I’ve done any ParaView scripting but I believe you should only need to call `UpdatePipeline` on the last filter in your pipeline and it should update all the upstream filters.
