# Dual view with the segment editor

**URL:** <https://discourse.slicer.org/t/dual-view-with-the-segment-editor/1413>\
**Category:** Support\
**Created:** [November 9, 2017, 5:52am UTC](https://discourse.slicer.org/t/dual-view-with-the-segment-editor/1413 "2017-11-09T05:52:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 9, 2017, 5:52am UTC](https://discourse.slicer.org/t/dual-view-with-the-segment-editor/1413/1 "2017-11-09T05:52:38Z")

</div>

Hi,

I am using scissors tool a lot to trim unwanted data. I do this in the side view of the specimen, but I also need to see how the specimen looks front on, so that I do not cut into it at an angle. I can turn on the dual 3D, but I can’t find a way to link them so view1 e.g., shows A view, while view2 show the Left view, and rotating in the volume in either of the views updates the other.

 ![Capture](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/8/d819228c889a93e2dc8bbb127263ad109f67b513.jpeg)

Is it possible to do this?

---

<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:** [November 9, 2017, 2:50pm UTC](https://discourse.slicer.org/t/dual-view-with-the-segment-editor/1413/2 "2017-11-09T14:50:30Z")

</div>

I think the closest you can get to this without writing any script is the following:

- Switch to dual 3D view (this makes sure you have 2 camera nodes), rotate the camera views to be orthogonal
- In Transforms module, create a transform and apply it to all nodes named “Default Scene Camera” (there should be at least two)
- Move the Rotation / IS slider to rotate the camera views in sync.

To make rotation available while you are in another module, type these into the python console to show a widget where you can adjust IS rotation:

```
sliders=slicer.qMRMLTransformSliders()
sliders.setMRMLScene(slicer.mrmlScene)
sliders.TypeOfTransform = slicer.qMRMLTransformSliders.ROTATION
sliders.TypeOfTransform = slicer.qMRMLTransformSliders.TRANSLATION
sliders.TypeOfTransform = slicer.qMRMLTransformSliders.ROTATION
sliders.setMRMLTransformNode(getNode('LinearTransform_3'))
sliders.show()
```

---

<div class="post-metadata">

**Author:** ![mukatyz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mukatyz/32/2567_2.png) [@mukatyz](https://discourse.slicer.org/u/mukatyz)\
**Post date:** [November 18, 2018, 3:16pm UTC](https://discourse.slicer.org/t/dual-view-with-the-segment-editor/1413/3 "2018-11-18T15:16:16Z")

</div>

Hi,

how i can make this script generic for any transform from python console. instead of getNode(‘LinearTransform\_3’)

---

<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:** [November 18, 2018, 3:24pm UTC](https://discourse.slicer.org/t/dual-view-with-the-segment-editor/1413/4 "2018-11-18T15:24:43Z")

</div>

Typically you create the transform node, so you don’t need to call `getNode`. If you want the user to select it then you typically add a `slicer.qMRMLNodeComboBox()` to your GUI (or you get the transform node associated with another node using `someNode.GetParentTransformNode()`.
