Python trace script not repeating PlotOverTime action

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.

https://gitlab.kitware.com/paraview/paraview/-/issues/22644

1 Like