# How to get the transform edited in 3D views interactively in Python Interacter

**URL:** <https://discourse.slicer.org/t/how-to-get-the-transform-edited-in-3d-views-interactively-in-python-interacter/20322>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [October 24, 2021, 1:20pm UTC](https://discourse.slicer.org/t/how-to-get-the-transform-edited-in-3d-views-interactively-in-python-interacter/20322 "2021-10-24T13:20:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Springle](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/springle/32/12901_2.png) [@Springle](https://discourse.slicer.org/u/Springle)\
**Post date:** [October 25, 2021, 3:45am UTC](https://discourse.slicer.org/t/how-to-get-the-transform-edited-in-3d-views-interactively-in-python-interacter/20322/3 "2021-10-25T03:45:53Z")

</div>

Hi, Tamas,

Thank you very much for you reply. What i need is to get a boundary or bounding box of my segmentation in 3D view window and then to drag or rotate the segmentation boundary to modify the position of my segmentation. This can be achieved in the GUI as this post did:

> [@Moving segmentation](https://discourse.slicer.org/t/moving-segmentation/14886/3):
>
> You can do all this in the Data module, by right-clicking on the transforms column: [interactive\_transform] Transform is rotated by left-click-and-drag, and translated by Shift+left-click-and-drag. “Harden transform” in the end if for permanently applying the transformation to the selected node, which is probably not needed for what the use case described above.

But i can not find a code way to do it.

---

_[View the full topic](https://discourse.slicer.org/t/how-to-get-the-transform-edited-in-3d-views-interactively-in-python-interacter/20322)._
