# Python trace script not repeating PlotOverTime action

**URL:** https://discourse.paraview.org/t/python-trace-script-not-repeating-plotovertime-action/14756
**Category:** ParaView Support
**Tags:** python
**Created:** [June 3, 2024, 6:53pm UTC](https://discourse.paraview.org/t/python-trace-script-not-repeating-plotovertime-action/14756 "2024-06-03T18:53:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![amalli0](https://discourse.paraview.org/user_avatar/discourse.paraview.org/amalli0/32/14532_2.png) [@amalli0](https://discourse.paraview.org/u/amalli0)
#### Post date: [June 3, 2024, 6:53pm UTC](https://discourse.paraview.org/t/python-trace-script-not-repeating-plotovertime-action/14756/1 "2024-06-03T18:53:11Z")

</div>

There is a known issue with tracing where it will miss a line in the code, leading to the error " NameError: name ‘plotSelectionOverTime1’ is not defined ". To fix it you are supposed to add the line " plotSelectionOverTime1 = PlotSelectionOverTime(Input=openfoam) " to make sure plotSelectionOverTime1 is defined. And the tracing code does work once you add this line. In my case, I am trying to plot the velocity over time of some cells I selected, then save the csv.

However, the csv comes back blank and no data is saved. Does anyone know how to resolve this? Note that when I save the trace as a macro and run the macro in the paraview gui, the data comes back fine.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [June 3, 2024, 7:29pm UTC](https://discourse.paraview.org/t/python-trace-script-not-repeating-plotovertime-action/14756/2 "2024-06-03T19:29:10Z")

</div>

[https://gitlab.kitware.com/paraview/paraview/-/issues/22644](https://gitlab.kitware.com/paraview/paraview/-/issues/22644)
