# Set min/max bounding of transforms programmatically

**URL:** <https://discourse.slicer.org/t/set-min-max-bounding-of-transforms-programmatically/294>\
**Category:** Development\
**Created:** [May 10, 2017, 5:25pm UTC](https://discourse.slicer.org/t/set-min-max-bounding-of-transforms-programmatically/294 "2017-05-10T17:25:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mangotee](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mangotee](https://discourse.slicer.org/u/mangotee)\
**Post date:** [May 10, 2017, 5:25pm UTC](https://discourse.slicer.org/t/set-min-max-bounding-of-transforms-programmatically/294/1 "2017-05-10T17:25:43Z")

</div>

Hi all,

I am trying to manipulate the entries of a transform (vtkMRMLLinearTransformNode) in Slicer programmatically, specifically, I’d like to set the translation part to a value larger than 200 (or smaller than -200).  
Unfortunately, the bounding between [-200,200] in the transforms module prohibits that and it gets capped to 200.  
How can I set these bounds to a higher value?  
I couldn’t find an approriate “Set” method in the function of the vtkMRMLLinearTransformNode, so I assume this must be done in the module’s logic? I couldn’t find an appropriate function in slicer.modules.transforms.logic() either though…  
A bit lost here… 😕 any help is appreciated.

Thanks and Cheers,  
Ahmad

---

<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:** [May 10, 2017, 5:26pm UTC](https://discourse.slicer.org/t/set-min-max-bounding-of-transforms-programmatically/294/2 "2017-05-10T17:26:57Z")

</div>

You should be able to set any values in a transform, regardless of how the display of values are set up in the Transforms module.

A related problem was fixed a couple of months ago in the trunk. Could you try if you still have the problem in the latest nightly version?

---

<div class="post-metadata">

**Author:** ![mangotee](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@mangotee](https://discourse.slicer.org/u/mangotee)\
**Post date:** [May 11, 2017, 7:20am UTC](https://discourse.slicer.org/t/set-min-max-bounding-of-transforms-programmatically/294/3 "2017-05-11T07:20:32Z")

</div>

Dear Andras,  
you were right - I was still using Slicer 4.5.0-1, I switched to 4.6.2 and this problem does not occur anymore - the min/max bounds are extended automatically.  
Thanks a lot!  
Cheers,A
