# Hide slice rectangles in 3D view

**URL:** https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912
**Category:** Support
**Created:** [May 13, 2025, 8:38pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912 "2025-05-13T20:38:45Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![spichardo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/spichardo/32/15092_2.png) [@spichardo](https://discourse.slicer.org/u/spichardo)
#### Post date: [May 13, 2025, 8:38pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/1 "2025-05-13T20:38:45Z")

</div>

Operating system: macOS 15.4.1  
Slicer version: 5.8.1  
Expected behavior: Old versions of 3DSlicer didn’t show these rectangles, they are in the way for illustration purposes  
Actual behavior: The “new” rectangles are shown all the time, I can’t find what option to select to hide them. I tried to click every option but I can’t find which is the one controlling its visibility. I know it has to be somewhere. Thanks for any tip.

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

---

<div class="post-metadata">

### Author: ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)
#### Post date: [May 13, 2025, 11:08pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/2 "2025-05-13T23:08:45Z")

</div>

> [@Show slice edges in 3D view](https://discourse.slicer.org/t/show-slice-edges-in-3d-view/11381):
>
> Most medical image viewer software uses color coding to make it easier to distinguish slices in 3D views. It would not be hard to do (you can try by copy-pasting a few lines of code into the Python console). play_button Code snippet to show slice edges Should we do it, too? My concern would be that it may make the views a bit too busy: It might be particularly confusing when the displayed image is smaller than the frame (this happens most of the case): It could be possible to set …

> <https://github.com/Slicer/Slicer/pull/8008>
>
> \- Implemented functionality to show slice edges in the 3D view.
> \- Added user in…terface controls to control the visibility of slice edges.
> \- Implemented linking controls to synchronize the visibility of slice edges across different views.
> 
> !\[image\](https://github.com/user-attachments/assets/eb4afd25-4697-4b62-9028-b935dcac43d2)
> 
> Reference: https://discourse.slicer.org/t/show-slice-edges-in-3d-view/11381

---

<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: [May 14, 2025, 3:14am UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/3 "2025-05-14T03:14:04Z")

</div>

You can show/hide it here:

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

You can set to show/hide it by defaut in the Application Settings:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/4/4483fc35ebd13dd11082aaf75ee39ceeb82ccc43.png)

---

<div class="post-metadata">

### Author: ![spichardo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/spichardo/32/15092_2.png) [@spichardo](https://discourse.slicer.org/u/spichardo)
#### Post date: [May 14, 2025, 2:59pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/4 "2025-05-14T14:59:56Z")

</div>

Hi, thanks a lot,  
Yes, that was one of the options I tried select/unselect several times, and the rectangle remained visible.  
For the record, this was a scene saved in a previous version of 3DSlicer (5.7.0), so no matter if I closed and reopened 3DSlicer and loaded the scene, the issue persisted. I used the IGT reslicer for the views. After seeing your answer, I just started a new scene from scratch, and then checkbox works as expected. Not sure how to reproduce it. Thanks for the help, cheers.

---

<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: [May 14, 2025, 4:20pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/5 "2025-05-14T16:20:29Z")

</div>

Let us know if you can reproduce the problem of not being able to hide the rectangle (using a saved scene or by following specific steps) and then we can investigate.

---

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [May 14, 2025, 7:27pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/6 "2025-05-14T19:27:47Z")

</div>

I’ve run into this also, also when loading a scene from an earlier version of Slicer (5.6.1). To reproduce:

1. In Slicer 5.6.1, load MRHead sample data
2. Show one or more slice views in 3D
3. Save to MRB
4. Open MRB in Slicer 5.8.1  
Colored rectangles cannot be hidden. They resize appropriately with slices, but do not go away when slices are hidden.

---

<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: [August 29, 2025, 5:04pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/7 "2025-08-29T17:04:30Z")

</div>

For reference, a fix has been submitted here:

> <https://github.com/Slicer/Slicer/pull/8684>
>
> When loading certain scenes (e.g., created by Slicer-5.6) slice edge frames coul…d not be hidden in 3D views.
> This was cause by multiple slice edge representations were added to the renderer due to a logic error in vtkMRMLThreeDSliceEdgeDisplayableManager.
> 
> Fixes issues reported here:
> https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912
> https://discourse.slicer.org/t/annoying-frame-after-slice-view-on-3d/44247
> 
> Also added a minor fix of the vtkMRMLViewNode API that I discovered while investigating this issue. It is not directly related to the fix, just included in this pull request because it is so small change that I did not want to add another pull request for it.

---

<div class="post-metadata">

### Author: ![sulli419](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sulli419/32/78859_2.png) [@sulli419](https://discourse.slicer.org/u/sulli419)
#### Post date: [September 1, 2025, 5:25pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/8 "2025-09-01T17:25:13Z")

</div>

Glad I found this discussion. I was having this issue as well. Is the idea that we have to install a newer version of slicer to fix the bug, or is there some other way to hide the immortal frame? Thanks.

---

<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: [September 2, 2025, 3:50pm UTC](https://discourse.slicer.org/t/hide-slice-rectangles-in-3d-view/42912/9 "2025-09-02T15:50:57Z")

</div>

Probably the simplest is to switch to the Slicer Preview Release. You can probably also get rid of the frames by loading individual data files instead of loading the scene file (.mrml or .mrb file).
