# Controlling the rotation handles with a python script

**URL:** <https://discourse.slicer.org/t/controlling-the-rotation-handles-with-a-python-script/25804>\
**Category:** Support\
**Created:** [October 20, 2022, 10:56am UTC](https://discourse.slicer.org/t/controlling-the-rotation-handles-with-a-python-script/25804 "2022-10-20T10:56:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMK](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@AMK](https://discourse.slicer.org/u/AMK)\
**Post date:** [October 20, 2022, 10:56am UTC](https://discourse.slicer.org/t/controlling-the-rotation-handles-with-a-python-script/25804/1 "2022-10-20T10:56:04Z")

</div>

Hi,

Is it possible to programitically control the rotation handles to rotate the plane.

I have created a plane.

B = slicer.mrmlScene.AddNewNodeByClass(“vtkMRMLMarkupsPlaneNode”)  
B.SetOrigin([0,0,0])  
B.SetNormal([0,0,-1])  
B.SetAxes([1,0,0],[0,1,0],[0,0,1])

The rotation handles are visible. I was wondering if it is possible to control the rotation angles with a slider with say a ctkslider. I would have used the qmrmlTransformslider, but as I only need to control two angles, I wanted to switch to ctkSlider.

Thanks
