Create and assign new timesteps to data


I have an STL file and I want to rotate the geometry by alpha every timestep and save the data. Right now, I just load the STL file and a series of empty CSV files that creates the time vector. Then I use the animation pane to rotate the STL file each timestep. So everything looks good and works if I save it as animation, but if I want to save my transformation (rotation by alpha) as time series of STL files, it only saves one time step and skips, so it seems the animation pane becomes inactive when I want to save data. Is there a way to rotate the STL file and be able to save it each timestep?

Thanks in advance


First, your csv tricks works but there is others, more flexible, and preferred way to create timesteps:

  • Sequence Mode. In the animation panel (renamed time manage in 5.12) you can define a Number Of Frames that will be used by the animation.
  • Generate TimeSteps filter create some timesteps in your pipeline.

Then concerning your issue:

  • The camera track in the animation panel move the camera itself, not the data: so the save data option will save the same input mesh.
  • Use the Transform Filter to actually modify your data, and create an animation track to change the angle at each timestep. Then save data should work (note the Save Timesteps option)
1 Like

Thanks a lot, I actually used the transform filter. The problem is not that the coordinates are not rotated, the problem is that it only saves one timestep (so the option “write all timesteps” is checked but does not work)

Ok, I see.

Save Data does not take animation into account, and just ask the pipeline data for timesteps.

To save the data modified by the animation tracks, one should prefer the Extractors, and then Save Extracts (8. Saving Results — ParaView Documentation 5.11.0 documentation)

1 Like

Thanks, I didn’t know about extractors. Then I should use ParaView 5.9 or newer.

Indeed! In any case, it is always worth updating software from time to time :slight_smile: