# Create rotating image around VTK mesh

**URL:** https://discourse.paraview.org/t/create-rotating-image-around-vtk-mesh/12451
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [July 5, 2023, 2:42pm UTC](https://discourse.paraview.org/t/create-rotating-image-around-vtk-mesh/12451 "2023-07-05T14:42:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Friedrich\_Krohn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/friedrich_krohn/32/11936_2.png) [@Friedrich\_Krohn](https://discourse.paraview.org/u/Friedrich_Krohn)
#### Post date: [July 5, 2023, 2:42pm UTC](https://discourse.paraview.org/t/create-rotating-image-around-vtk-mesh/12451/1 "2023-07-05T14:42:17Z")

</div>

I would like to write a Python script where I load a VTK mesh and create a video of a camera rotating around it horizontally. If possible, I would also like to take a screenshot from each top, bottom, front, back, left and right.

---

<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: [July 7, 2023, 7:16am UTC](https://discourse.paraview.org/t/create-rotating-image-around-vtk-mesh/12451/2 "2023-07-07T07:16:36Z")

</div>

Hi,

You should create an animation: [7. Animation — ParaView Documentation 5.11.0 documentation](https://docs.paraview.org/en/latest/UsersGuide/animation.html)

For the screenshots, you can:

- use some `Extractors` [8. Saving Results — ParaView Documentation 5.11.0 documentation](https://docs.paraview.org/en/latest/UsersGuide/savingResults.html#extractors)
- directly call ` SaveScreenshot` : [8. Saving Results — ParaView Documentation 5.11.0 documentation](https://docs.paraview.org/en/latest/UsersGuide/savingResults.html#saving-screenshots)

---

<div class="post-metadata">

### Author: ![Friedrich\_Krohn](https://discourse.paraview.org/user_avatar/discourse.paraview.org/friedrich_krohn/32/11936_2.png) [@Friedrich\_Krohn](https://discourse.paraview.org/u/Friedrich_Krohn)
#### Post date: [July 7, 2023, 12:42pm UTC](https://discourse.paraview.org/t/create-rotating-image-around-vtk-mesh/12451/3 "2023-07-07T12:42:00Z")

</div>

Hello,

I am able to create an animation scene manually using the GUI. However, I would like to do that for 100+ images and therefore, it would be far more convenient if there was a programmatic solution to this problem.

---

<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: [July 10, 2023, 9:16am UTC](https://discourse.paraview.org/t/create-rotating-image-around-vtk-mesh/12451/4 "2023-07-10T09:16:18Z")

</div>

All of this can be done in python too.  
Previous links contain some info about python scripting. [Here](https://kitware.github.io/paraview-docs/latest/python/) is the whole API doc.
