# Creating animation with a set of meshes deforming over time overlapped to ct-scan

**URL:** <https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702>\
**Category:** Support\
**Created:** [February 14, 2025, 4:04pm UTC](https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702 "2025-02-14T16:04:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![msensale1](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@msensale1](https://discourse.slicer.org/u/msensale1)\
**Post date:** [February 14, 2025, 4:04pm UTC](https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702/1 "2025-02-14T16:04:20Z")

</div>

Hi All,

I have a set of meshes (vtk) that represent the same geometry deforming over time. Each time refers to a different time step. I could upload this set of meshes in Paraview and generate an animation with the moving object. I’d like to do the same in Slicer while keeping in the background the corresponding CT-scan. Is it possible to do that in Slicer? Could anyone provide guidance?

Many thanks,  
Marco

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 14, 2025, 5:57pm UTC](https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702/2 "2025-02-14T17:57:34Z")

</div>

You should be able to do ths with sequences: [Sequences — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/sequences.html)

---

<div class="post-metadata">

**Author:** ![msensale1](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@msensale1](https://discourse.slicer.org/u/msensale1)\
**Post date:** [February 17, 2025, 10:33am UTC](https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702/3 "2025-02-17T10:33:01Z")

</div>

Thank you very much for your contribution.

I tried to work with Sequences, but I haven’t found any method to switch from one vtk (time step) to the following seemlessly and while recording. Perhaps scripting is required?

Thanks,  
Marco

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 17, 2025, 1:50pm UTC](https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702/4 "2025-02-17T13:50:05Z")

</div>

Scripting usually helps if you are trying to do something sophisticated and want to be reproducible. But if your goal is to load a set of vtk poly data objects and iterate through displaying them you should be able to just load them all as models, put them in a sequence and animate them.

That said, I don’t use the Sequences module much and maybe someone who does can give you step by step instructions (or explain any gaps in the documentation so it can be improved).

---

<div class="post-metadata">

**Author:** ![msensale1](https://avatars.discourse-cdn.com/v4/letter/m/3ec8ea/32.png) [@msensale1](https://discourse.slicer.org/u/msensale1)\
**Post date:** [February 17, 2025, 4:49pm UTC](https://discourse.slicer.org/t/creating-animation-with-a-set-of-meshes-deforming-over-time-overlapped-to-ct-scan/41702/5 "2025-02-17T16:49:20Z")

</div>

Yes my goal is exactly to load a set of vtk polydata and iterate through displaying them. I loaded them as models and put in a sequence, but didn’t find how to animate them.
