# Show/hide slice views in 3D view using Python

**URL:** https://discourse.slicer.org/t/show-hide-slice-views-in-3d-view-using-python/3074
**Category:** Development
**Created:** [June 5, 2018, 8:23am UTC](https://discourse.slicer.org/t/show-hide-slice-views-in-3d-view-using-python/3074 "2018-06-05T08:23:03Z")
**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: [June 5, 2018, 12:28pm UTC](https://discourse.slicer.org/t/show-hide-slice-views-in-3d-view-using-python/3074/2 "2018-06-05T12:28:09Z")

</div>

Right - the slice models are controlled at a higher level and so the visibility and transform are controlled by the SliceNode, which is what is tied to the eye icon in the slice controller.

```auto
red = getNode('vtkMRMLSliceNodeRed')
red.SetSliceVisible(1)

```

HTH,  
Steve

---

_[View the full topic](https://discourse.slicer.org/t/show-hide-slice-views-in-3d-view-using-python/3074)._
