# Extract slice view rotations? (For applying to crop volume ROI)

**URL:** <https://discourse.slicer.org/t/extract-slice-view-rotations-for-applying-to-crop-volume-roi/47607>\
**Category:** Support\
**Created:** [July 13, 2026, 1:46pm UTC](https://discourse.slicer.org/t/extract-slice-view-rotations-for-applying-to-crop-volume-roi/47607 "2026-07-13T13:46:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [July 13, 2026, 1:46pm UTC](https://discourse.slicer.org/t/extract-slice-view-rotations-for-applying-to-crop-volume-roi/47607/1 "2026-07-13T13:46:01Z")

</div>

Is there a way to extract the rotation transform of slice views rotated using ctrl-alt-left-click-and-drag? It would be super handy to be able to take that and paste it into a transform to apply to a crop volume ROI. It’s easy enough to just rotate the ROI by hand and get it close, but I was wondering if a quick python snippet to extract the rotation angles and make a quick transform would be doable.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [July 13, 2026, 5:01pm UTC](https://discourse.slicer.org/t/extract-slice-view-rotations-for-applying-to-crop-volume-roi/47607/2 "2026-07-13T17:01:21Z")

</div>

May be you are referring to the _SlicerToRAS_ matrix of a slice node.

```auto
sliceNode = slicer.app.layoutManager().sliceWidget("Red").mrmlSliceNode()
mx = sliceNode.GetSliceToRAS()
t = slicer.mrmlScene.AddNewNodeByClass("vtkMRMLTransformNode")
t.ApplyTransformMatrix(mx)

```

Apply the MRML transform node to the ROI node in the `Transforms module` and tell us if that’s what you meant.
