# Reuse of qMRMLTransformSliders to perform rotation transform in custom scriptable module

**URL:** <https://discourse.slicer.org/t/reuse-of-qmrmltransformsliders-to-perform-rotation-transform-in-custom-scriptable-module/31598>\
**Category:** Development\
**Created:** [September 7, 2023, 3:54am UTC](https://discourse.slicer.org/t/reuse-of-qmrmltransformsliders-to-perform-rotation-transform-in-custom-scriptable-module/31598 "2023-09-07T03:54:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruce](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@bruce](https://discourse.slicer.org/u/bruce)\
**Post date:** [September 7, 2023, 3:54am UTC](https://discourse.slicer.org/t/reuse-of-qmrmltransformsliders-to-perform-rotation-transform-in-custom-scriptable-module/31598/1 "2023-09-07T03:54:45Z")

</div>

In our custom module I’d like to include sliders to perform a rotation transform. [This post](https://discourse.slicer.org/t/how-to-do-custom-rotation-sliders-and-transformation-buttons-with-python/19747/1) suggests reusing the slicer.qMRMLTransformSliders widget is the way to go but I can’t seem to access some of the properties from python. The setTypeOfTransform method is not available and If I try to set the TransformType property using Qt syntax I get an attribute error:

> t.TransformType = slicer.qMRMLTransformSliders.ROTATION  
> Traceback (most recent call last):  
> AttributeError: Enum ‘TransformType’ can not be overwritten on qMRMLTransformSliders object

Nor can I access the minMaxVisible property to configure the widget manually.  
Maybe I’m going about this the wrong way? Any help would be appreciated.  
Thanks

---

<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:** [September 7, 2023, 11:45am UTC](https://discourse.slicer.org/t/reuse-of-qmrmltransformsliders-to-perform-rotation-transform-in-custom-scriptable-module/31598/2 "2023-09-07T11:45:40Z")

</div>

Looks like you need to set `TypeOfTransform` to one of the `TransformType` values.

> <https://github.com/Slicer/Slicer/blob/4540594f5ff293cb387fd252e24e32be13e377c8/Libs/MRML/Widgets/qMRMLTransformSliders.h#L45-L46>

`minMaxVisible` is available to me:

```auto
>>> t = slicer.qMRMLTransformSliders()
>>> t.minMaxVisible
True

```
