# Nested animations

**URL:** https://discourse.paraview.org/t/nested-animations/11062
**Category:** ParaView Support
**Created:** [December 22, 2022, 11:30am UTC](https://discourse.paraview.org/t/nested-animations/11062 "2022-12-22T11:30:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Juan\_Jose\_Casafranca](https://discourse.paraview.org/user_avatar/discourse.paraview.org/juan_jose_casafranca/32/3499_2.png) [@Juan\_Jose\_Casafranca](https://discourse.paraview.org/u/Juan_Jose_Casafranca)
#### Post date: [December 22, 2022, 11:30am UTC](https://discourse.paraview.org/t/nested-animations/11062/1 "2022-12-22T11:30:36Z")

</div>

I am using Paraview to analyse and debug some simulation code I have written. During the simulation, I update the state of some triangular meshes several times, until the simulation converges. Once the simulation has converged. This is done for each frame of the simulation.

For each frame, I am saving into disk the state of the triangular meshes after each update, so essentially, for each frame, I have several versions of the meshes.

I have written a custom reader to load my results into Paraview. The reader generates an animation, and each frame represents one timestamp of the animation in Paraview. For each of the timestamps I load each version of the meshes as children of a vtkMultiBlockDataSet.

I would like to know if its possible to have something like nested animations, so I can have a frame in paraview, and within that frame, have a subanimation so I can load in it the different versions of the meshes.

---

<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: [December 22, 2022, 1:54pm UTC](https://discourse.paraview.org/t/nested-animations/11062/2 "2022-12-22T13:54:51Z")

</div>

It is not easily doable, and probably not possible _via_ the buttons in the interface.

In the animation mode, each frame should be somehow time-related so the best is to have one temporal dataset containg one mesh per timestep.

What you can try if you do not want to change your file structure, is:

- load your data
- set `Sequence` mode in `Animation View`
- create `Python Track`. There you can fill a ParaView python script that is called at each frame. You can code anything you want there so loading data and switching block visibility is absolutely doable.
