# Reslice Driver Disable Rotation

**URL:** <https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931>\
**Category:** Support\
**Tags:** slicerigt\
**Created:** [July 26, 2021, 7:31pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931 "2021-07-26T19:31:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasmine-lou](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jasmine-lou/32/11369_2.png) [@jasmine-lou](https://discourse.slicer.org/u/jasmine-lou)\
**Post date:** [July 26, 2021, 7:31pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/1 "2021-07-26T19:31:59Z")

</div>

Hi everyone!

I was wondering if there was a way to disable the rotation of the CTs when using the Reslice Driver in IGT? Right now I understand that the CTs are rotating based on the rotation of the tool, but it can appear very unintuitive at times. Is there an easy way that I could disable the rotational component and only have the slices scroll based on where the tool is depth-wise? Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 26, 2021, 9:20pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/2 "2021-07-26T21:20:51Z")

</div>

If you have a 6-DOF tool, such as a stylus then you can rotate the views by rotating the tool.

If you have a 5-DOF tool or the user wants to specify reslicing with a single direction (e.g., C-arm rotation angle) then you need to specify how you want to constraint the up direction to make the oblique views easier to interpret. See a full working example [here](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#set-slice-position-and-orientation-from-a-normal-vector-and-position).

---

<div class="post-metadata">

**Author:** ![jasmine-lou](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jasmine-lou/32/11369_2.png) [@jasmine-lou](https://discourse.slicer.org/u/jasmine-lou)\
**Post date:** [July 27, 2021, 6:05pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/3 "2021-07-27T18:05:42Z")

</div>

Thanks so much for the response. I have a 6-DOF tool but I do NOT want to rotate the views when I rotate the tool. Is there any way/how would I implement that?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 27, 2021, 6:13pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/4 "2021-07-27T18:13:48Z")

</div>

Yes, you can use the code snippet that I referenced above.

Note that you can also use the anatomical axis-locked modes of Volume Reslice Driver module. Or you can show the slices in 3D view - then you don’t need rotation at all because the slice is displayed in its physical location.

---

<div class="post-metadata">

**Author:** ![jasmine-lou](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jasmine-lou/32/11369_2.png) [@jasmine-lou](https://discourse.slicer.org/u/jasmine-lou)\
**Post date:** [July 27, 2021, 8:08pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/5 "2021-07-27T20:08:59Z")

</div>

Where is the axis-locked mode located? Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 27, 2021, 11:03pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/6 "2021-07-27T23:03:03Z")

</div>

You can choose a slice view to be locked to an anatomical axis (and only adjust the position of the slice with the pointer) here:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/0/c/0c1fcb2208856ba6fd833192fe1bf6736c9b32dd.png)

---

<div class="post-metadata">

**Author:** ![jasmine-lou](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jasmine-lou/32/11369_2.png) [@jasmine-lou](https://discourse.slicer.org/u/jasmine-lou)\
**Post date:** [July 28, 2021, 7:59pm UTC](https://discourse.slicer.org/t/reslice-driver-disable-rotation/18931/7 "2021-07-28T19:59:07Z")

</div>

Thanks so much for the help!
