# Recording or taking screenshots of Tait-Bryan Rotation on Object in VTK

**URL:** https://discourse.vtk.org/t/recording-or-taking-screenshots-of-tait-bryan-rotation-on-object-in-vtk/7493
**Category:** Support
**Created:** [December 24, 2021, 7:40am UTC](https://discourse.vtk.org/t/recording-or-taking-screenshots-of-tait-bryan-rotation-on-object-in-vtk/7493 "2021-12-24T07:40:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Charles\_Shin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charles_shin/32/4449_2.png) [@Charles\_Shin](https://discourse.vtk.org/u/Charles_Shin)
#### Post date: [December 24, 2021, 7:40am UTC](https://discourse.vtk.org/t/recording-or-taking-screenshots-of-tait-bryan-rotation-on-object-in-vtk/7493/1 "2021-12-24T07:40:19Z")

</div>

Hi, I am trying to record or take screenshot of rotating multiple objects (head, tumor, etc.) in tait-bryan/euler fashion with specific angles. However, I can only find camera rotation for VTK, which is not what I wanted because that would create a completely different outcome…Is there a way for me to do what I am trying to do in VTK, or should I use a different python package for tait-bryan rotation?

Thank you so much for your help!!

---

<div class="post-metadata">

### Author: ![dcthomp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/dcthomp/32/60_2.png) [@dcthomp](https://discourse.vtk.org/u/dcthomp)
#### Post date: [December 28, 2021, 5:46pm UTC](https://discourse.vtk.org/t/recording-or-taking-screenshots-of-tait-bryan-rotation-on-object-in-vtk/7493/2 "2021-12-28T17:46:58Z")

</div>

Take a look at vtkTransformFilter and vtkTransform. Instances of vtkActor can accept a vtkTransform (applied to the actor, not the camera). You can use vtkTransformFilter to create a transformed version of the underlying data.

---

<div class="post-metadata">

### Author: ![Charles\_Shin](https://discourse.vtk.org/user_avatar/discourse.vtk.org/charles_shin/32/4449_2.png) [@Charles\_Shin](https://discourse.vtk.org/u/Charles_Shin)
#### Post date: [December 28, 2021, 7:54pm UTC](https://discourse.vtk.org/t/recording-or-taking-screenshots-of-tait-bryan-rotation-on-object-in-vtk/7493/3 "2021-12-28T19:54:36Z")

</div>

Thank you for your help! I actually used both vtkTransformFilter and vtkTransform for the actor, yet the camera was the one rotating instead…I explained this issue with the code in the post link below. If you have time, would you mind if you could help me with this issue?

Hope you had a great Christmas!

> [@Help: Intrinsic Rotation on Object not working...](https://discourse.vtk.org/t/help-intrinsic-rotation-on-object-not-working/7500):
>
> I’m trying to do intrinsic rotation (not rotating camera!!) on a NIFTI image, but it is not working…I’ve been working on this for hours, and it is quite sad that it is still not working. I saw the documentation regarding RotateX, RotateY, RotateZ (and WXYZ), so I used it as the transformation module as you can see in the code below. Any help on this issue is more than appreciated!! Thank you… #import ants import vtk, sys, os from skimage.filters import threshold\_otsu output\_dir = "./" #hea…
