# More than one rotation slider in transforms module can be non-zero

**URL:** https://discourse.slicer.org/t/more-than-one-rotation-slider-in-transforms-module-can-be-non-zero/26713
**Category:** Support
**Created:** [December 13, 2022, 3:35pm UTC](https://discourse.slicer.org/t/more-than-one-rotation-slider-in-transforms-module-can-be-non-zero/26713 "2022-12-13T15:35:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [December 13, 2022, 3:35pm UTC](https://discourse.slicer.org/t/more-than-one-rotation-slider-in-transforms-module-can-be-non-zero/26713/1 "2022-12-13T15:35:12Z")

</div>

As mentioned in the below comment in another thread,

> [@Bug in Transforms module](https://discourse.slicer.org/t/bug-in-transforms-module/11091/2):
>
> Thanks for letting us know. This is the intended behavior - only one slider can be at non-zero position at a time (with only one exception). See explanation in Transform’s module documentation’s [Transform editing and application](https://www.slicer.org/wiki/Documentation/Nightly/Modules/Transforms#Transform_editing_and_application) section. Let us know if something is not clear.

and according to the Transforms module documentation regarding [editing](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html#edit):

> Note: Linear transform edit sliders only show relative translation and rotation because a transformation can be achieved using many different series of transforms. To make this clear to users, only one transform slider can be non-zero at a time (all previously modified sliders are reset to 0 when a slider is moved). The only exception is translation sliders in “translate first” mode (i.e., when translation in global/local coordinate system button is not depressed): in this case there is a only one way how a specific translation can be achieved, therefore transform sliders are not reset to 0.

there should only be one slider with a non-zero position at a time. However, using latest stable Slicer 5.2.1, I’m observing that I can cause more than 1 slider to be non-zero. Moving the sliders will reset the other, but if I insert in the rotation with the spinbox, that resetting behavior seems to no longer work. Is this a bug?

Related threads on transform sliders behavior:

- [Bug in Transforms module](https://discourse.slicer.org/t/bug-in-transforms-module/11091)
- [Is the rotation of the 3D Slicer's Transform module Euler or Quaternion?](https://discourse.slicer.org/t/is-the-rotation-of-the-3d-slicers-transform-module-euler-or-quaternion/11944)
- [Reformat module Values not resetting](https://discourse.slicer.org/t/reformat-module-values-not-resetting/15873)
- [Slicer doesn't show rotation slider value corresponding to a transform after rotation axis is not cannonical](https://discourse.slicer.org/t/slicer-doesnt-show-rotation-slider-value-corresponding-to-a-transform-after-rotation-axis-is-not-cannonical/23943)

---

<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: [December 13, 2022, 6:18pm UTC](https://discourse.slicer.org/t/more-than-one-rotation-slider-in-transforms-module-can-be-non-zero/26713/2 "2022-12-13T18:18:54Z")

</div>

Yes, sounds like a bug to me.

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [December 14, 2022, 3:57pm UTC](https://discourse.slicer.org/t/more-than-one-rotation-slider-in-transforms-module-can-be-non-zero/26713/3 "2022-12-14T15:57:09Z")

</div>

This issue is being tracked at:

> <https://github.com/Slicer/Slicer/issues/6735>
>
> \## Summary
> 
> Originally mentioned at https://discourse.slicer.org/t/more-than-o…ne-rotation-slider-in-transforms-module-can-be-non-zero/26713
> 
> \## Steps to reproduce
> 
> 1. Go to Transforms module and add a new linear transform node
> 2. Change the LR, PA, IS slider value and observe that upon changing one it resets the others
> 3. Change the LR. PA, IS spinbox values directly and observe that more than one rotation slider can be non-zero
> 4. Change the LR, PA, IS slider value and observe that more than one rotation slider can be non-zero.
> 
> 
> https://user-images.githubusercontent.com/15837524/207636840-7c4541a7-cc8f-4c7c-b371-72d17fd7cbdc.mp4
> 
> 
> \## Expected behavior
> 
> Only one rotation slider can be non zero (as according to the Slicer documentation)
> 
> https://slicer.readthedocs.io/en/latest/user\_guide/modules/transforms.html#edit
> 
> \> Note: Linear transform edit sliders only show relative translation and rotation because a transformation can be achieved using many different series of transforms. To make this clear to users, only one transform slider can be non-zero at a time (all previously modified sliders are reset to 0 when a slider is moved). The only exception is translation sliders in “translate first” mode (i.e., when translation in global/local coordinate system button is not depressed): in this case there is a only one way how a specific translation can be achieved, therefore transform sliders are not reset to 0.
> 
> \## Environment
> \- Slicer version: Slicer-5.2.1
> \- Operating system: Windows
