# 3DView LinkedControlOn/Off behavior issue

**URL:** <https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884>\
**Category:** Development\
**Created:** [October 25, 2022, 3:14am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884 "2022-10-25T03:14:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Long\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/long_zhang/32/13519_2.png) [@Long\_Zhang](https://discourse.slicer.org/u/Long_Zhang)\
**Post date:** [October 25, 2022, 3:14am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884/1 "2022-10-25T03:14:15Z")

</div>

I am rendering two (different) volumes in two 3DView using python in an extension module. Each volume was configured with its own camera settings.

My intended behavior is the two 3DView has a linked behavior, e.g. the same rotation (only) operated using mouse in the 1st 3DView is applied to the 2nd 3DView (without mouse interaction there). However, I found that an extra translational transformation is added in the second 3Dview. So the volume showing in the 2nd 3DView become invisible in the display port.

Any hints or suggestions to make this working as I expected?

---

<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:** [October 25, 2022, 3:14am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884/2 "2022-10-25T03:14:56Z")

</div>

I cannot reproduce the behavior that you describe. Could you please provide a screen capture video or at least a few screenshots?

---

<div class="post-metadata">

**Author:** ![Long\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/long_zhang/32/13519_2.png) [@Long\_Zhang](https://discourse.slicer.org/u/Long_Zhang)\
**Post date:** [October 25, 2022, 3:45am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884/3 "2022-10-25T03:45:06Z")

</div>

Sorry, my fault: my version is 4.13.0-2022-01-16-linux, a previouse release version.

This is the initial views (different volumes centered in the views):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/a/fa85d83c7f5f81a2062935bcbfb4376cd763e280.jpeg)

After click in the right upper view (the two views were LinkedControlOn). The volume dispeared:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/d/2d5bd313425492cf3373a2712015687569e07bae.jpeg)

After rotation (volume shows up in the right bottom view):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/d/ad946ea2e9d3ce8900702ffc75fc5752272962f0.jpeg)

My guess is that the volume was translated by the first click in the right top view.

---

<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:** [October 25, 2022, 4:01am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884/4 "2022-10-25T04:01:10Z")

</div>

Please always test the latest Slicer Stable Release before you ask a question or report an issue. The behavior may have been improved since your version was built.

If I understand well, you would like to synchronize the camera orientation only. The built-in linking feature links all the camera parameters, including camera and focal point positions, so you cannot focus on different points in 3D space. Instead, you can either translate all the volumes to be centered at the same physical position. Or, you can add an observer to a camera and whenever a camera parameter changes update the other 3D view’s camera accordingly.

---

<div class="post-metadata">

**Author:** ![Long\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/long_zhang/32/13519_2.png) [@Long\_Zhang](https://discourse.slicer.org/u/Long_Zhang)\
**Post date:** [October 25, 2022, 4:08am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884/5 "2022-10-25T04:08:15Z")

</div>

OK. Got the point. And thank you very much for the alternatives. I will try and report their results later.

---

<div class="post-metadata">

**Author:** ![Long\_Zhang](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/long_zhang/32/13519_2.png) [@Long\_Zhang](https://discourse.slicer.org/u/Long_Zhang)\
**Post date:** [October 25, 2022, 4:15am UTC](https://discourse.slicer.org/t/3dview-linkedcontrolon-off-behavior-issue/25884/6 "2022-10-25T04:15:31Z")

</div>

It looks that the camera way is better as it self-constrained in current issue. The modification of volumes might have consequences somewhere else.
