# SaveData does not save the multiple timesteps at pvpython

**URL:** https://discourse.paraview.org/t/savedata-does-not-save-the-multiple-timesteps-at-pvpython/10203
**Category:** ParaView Support
**Created:** [August 29, 2022, 8:51am UTC](https://discourse.paraview.org/t/savedata-does-not-save-the-multiple-timesteps-at-pvpython/10203 "2022-08-29T08:51:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jpruscio](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@jpruscio](https://discourse.paraview.org/u/jpruscio)
#### Post date: [August 29, 2022, 8:51am UTC](https://discourse.paraview.org/t/savedata-does-not-save-the-multiple-timesteps-at-pvpython/10203/1 "2022-08-29T08:51:35Z")

</div>

Hello!

I am using Paraview 5.10

I am trying to save data of multiple timsteps automatically from pvpython using a trace that I generated at the GUI and it doesn’t work, it just saves the current timestep in pvpython whereas in the GUI it actually saves all the desired timesteps.  
this is the trace I am using:

# save data

```auto
SaveData(output_folder+'my_file.vtu', proxy=appendAttributes1, ChooseArraysToWrite=0,
    PointDataArrays=['array_1', 'array_2'],
    CellDataArrays=['Area', 'Length'],
    FieldDataArrays=[],
    VertexDataArrays=[],
    EdgeDataArrays=[],
    RowDataArrays=[],
    Writetimestepsasfileseries=1,
    Firsttimestep=0,
    Lasttimestep=-1,
    Timestepstride=1,
    Filenamesuffix='_%d',
    DataMode='Appended',
    EncodeAppendedData=0,
    CompressorType='None',
    CompressionLevel='6')

```

Thanks very much!  
Juan

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [August 29, 2022, 1:22pm UTC](https://discourse.paraview.org/t/savedata-does-not-save-the-multiple-timesteps-at-pvpython/10203/2 "2022-08-29T13:22:05Z")

</div>

To save temporal data you should better use an `Extractor` and to export a python state.

Menu `Extractors / Data / VTU` to create an extractor. In the properties panel you can configure name and frequency. Then save a python state.

With `SaveData` you have to manually loop over the timesteps (and configure a new name for each time !)

---

<div class="post-metadata">

### Author: ![jpruscio](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/e47c2d/32.png) [@jpruscio](https://discourse.paraview.org/u/jpruscio)
#### Post date: [August 30, 2022, 8:55am UTC](https://discourse.paraview.org/t/savedata-does-not-save-the-multiple-timesteps-at-pvpython/10203/3 "2022-08-30T08:55:47Z")

</div>

Thanks for your reply,  
I tried with extracts in a simple case and it worked, but it doesn’t work in something a little bit more complex like the code in which I am trying to implement (maybe because I save and read some vtu’s during the porcess to obtain the final result which is the one I would need to save for all the timsteps. I think that my only choice will be then to code by myself a loop in my pvpython file to iterate trough the list of my tsteps at the reader.  
Thanks anyways!
