# Automate camera translation (zoom into volume) into a sequence

**URL:** <https://discourse.slicer.org/t/automate-camera-translation-zoom-into-volume-into-a-sequence/35028>\
**Category:** Support\
**Created:** [March 22, 2024, 7:25pm UTC](https://discourse.slicer.org/t/automate-camera-translation-zoom-into-volume-into-a-sequence/35028 "2024-03-22T19:25:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewWeitz](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@AndrewWeitz](https://discourse.slicer.org/u/AndrewWeitz)\
**Post date:** [March 22, 2024, 7:25pm UTC](https://discourse.slicer.org/t/automate-camera-translation-zoom-into-volume-into-a-sequence/35028/1 "2024-03-22T19:25:09Z")

</div>

Is there a way to vectorize the zoom in/out of the camera. i.e. camera starts at position (1,0,0) and then zooms into position (5,0,0). Looking to create an automated sequence that starts with the volume zoomed out and then zoom in without manually moving the camera using the scroll wheel or up/down arrows.

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [March 22, 2024, 10:23pm UTC](https://discourse.slicer.org/t/automate-camera-translation-zoom-into-volume-into-a-sequence/35028/2 "2024-03-22T22:23:58Z")

</div>

You can easily set the position of the camera (as well as other camera parameters) via python code. You may find this thread informative: [How to define camera perspective of 3D view window](https://discourse.slicer.org/t/how-to-define-camera-perspective-of-3d-view-window/17136)
