# Rotate and/or pan 3D model in small increments

**URL:** <https://discourse.slicer.org/t/rotate-and-or-pan-3d-model-in-small-increments/16641>\
**Category:** Support\
**Created:** [March 19, 2021, 3:25pm UTC](https://discourse.slicer.org/t/rotate-and-or-pan-3d-model-in-small-increments/16641 "2021-03-19T15:25:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quim](https://avatars.discourse-cdn.com/v4/letter/q/4af34b/32.png) [@quim](https://discourse.slicer.org/u/quim)\
**Post date:** [March 19, 2021, 3:25pm UTC](https://discourse.slicer.org/t/rotate-and-or-pan-3d-model-in-small-increments/16641/1 "2021-03-19T15:25:53Z")

</div>

Operating system: Linux Mint 19.3  
Slicer version: 4.11  
Expected behavior:  
I am trying to make a movie for publication of a 3D model while I rotate, pan and zoom it, to better display details. To achieve this, I am using the modules sequences and screen capture. However, if I rotate/pan/zoom the model using the mouse, the final result is shaky and uneven. I would like to use the keyboard arrows to rotate and the shift-arrow to pan to have better control. However, in this case the rotation angles and pan steps are too big.  
Is there a way to reduce the rotation angles and pan displacements of the camera when using the arrows or shift-arrow?

---

<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:** [March 19, 2021, 6:08pm UTC](https://discourse.slicer.org/t/rotate-and-or-pan-3d-model-in-small-increments/16641/2 "2021-03-19T18:08:35Z")

</div>

If you are willing to dig in the code and maybe recompile Slicer I’m sure the increments can be changed. I don’t recall the exact classes involved but I’m sure it can be found. Perhaps it’s even configurable in python.

Or you might want the Animator from SlicerMorph. It lets you make movies like this (it’s build on top of ScreenCapture):

[![](https://img.youtube.com/vi/oGtvTOhIFtA/maxresdefault.jpg "SlicerAnimator") ](https://www.youtube.com/watch?v=oGtvTOhIFtA)

> **[GitHub - SlicerMorph/SlicerMorph: Extensions to conduct 3D morphometrics in...](https://github.com/SlicerMorph/SlicerMorph)**
>
> Extensions to conduct 3D morphometrics in Slicer. Contribute to SlicerMorph/SlicerMorph development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![quim](https://avatars.discourse-cdn.com/v4/letter/q/4af34b/32.png) [@quim](https://discourse.slicer.org/u/quim)\
**Post date:** [March 19, 2021, 7:44pm UTC](https://discourse.slicer.org/t/rotate-and-or-pan-3d-model-in-small-increments/16641/3 "2021-03-19T19:44:58Z")

</div>

Thank you for your suggestions. I looked into Animator, but it does not appear to support panning and it does not work with models, only with volumes. It would be great to be able to change the increments using Python, but I do not know how.

---

<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:** [March 19, 2021, 9:18pm UTC](https://discourse.slicer.org/t/rotate-and-or-pan-3d-model-in-small-increments/16641/4 "2021-03-19T21:18:00Z")

</div>

I’m not sure either, you’d need to look through the code.

Note that the animator has a plugin architecture, so you can define your on action classes in python, but that’s also a bit of work.
