# Shows 2D Slices on one 3D view when using dual 3D view

**URL:** <https://discourse.slicer.org/t/shows-2d-slices-on-one-3d-view-when-using-dual-3d-view/21895>\
**Category:** Development\
**Created:** [February 10, 2022, 4:19pm UTC](https://discourse.slicer.org/t/shows-2d-slices-on-one-3d-view-when-using-dual-3d-view/21895 "2022-02-10T16:19:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 10, 2022, 4:23pm UTC](https://discourse.slicer.org/t/shows-2d-slices-on-one-3d-view-when-using-dual-3d-view/21895/2 "2022-02-10T16:23:57Z")

</div>

Follow up to this discussion:

> [@Show/hide slice views in 3D view using Python](https://discourse.slicer.org/t/show-hide-slice-views-in-3d-view-using-python/3074/):
>
> Hi developers, I have a problem switching on the slice views on or off in the 3D view from Python permanently. The code I am using for i.e. switch on the red slice view is: current\_slice\_node = slicer.mrmlScene.GetNodeByID(‘vtkMRMLModelDisplayNode1’) current\_slice\_node.VisibilityOn() This code works well until one changes the position of the slice by i.e. scrolling in the slice view. I guess since the “eye” in the slice view is still “closed” the update will set the visibility again to 0 and…

---

_[View the full topic](https://discourse.slicer.org/t/shows-2d-slices-on-one-3d-view-when-using-dual-3d-view/21895)._
