# Segment Editor doesn't work on custom slice

**URL:** https://discourse.slicer.org/t/segment-editor-doesnt-work-on-custom-slice/30572
**Category:** Development
**Created:** [July 13, 2023, 1:53am UTC](https://discourse.slicer.org/t/segment-editor-doesnt-work-on-custom-slice/30572 "2023-07-13T01:53:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nnzzll](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/nnzzll/32/16350_2.png) [@nnzzll](https://discourse.slicer.org/u/nnzzll)
#### Post date: [July 13, 2023, 1:53am UTC](https://discourse.slicer.org/t/segment-editor-doesnt-work-on-custom-slice/30572/1 "2023-07-13T01:53:33Z")

</div>

I added a custom slice outside the view layout using this [script](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html) and tried to use segment editor paint on it. But it doesn’t work

[https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/4/d423d7018be11edb5e7f10c35c7e8e616777f8b5.mp4](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/4/d423d7018be11edb5e7f10c35c7e8e616777f8b5.mp4)

How can I get the Segment Editor work on slice that outside the view layout?

---

<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: [July 13, 2023, 2:02am UTC](https://discourse.slicer.org/t/segment-editor-doesnt-work-on-custom-slice/30572/2 "2023-07-13T02:02:36Z")

</div>

Segment Editor gets the list of views from the layout manager, so all the views must be described in the view layout. The good news is that in recent Slicer versions, the [layout manager can display views outside the main viewport](https://discourse.slicer.org/t/new-feature-dual-monitor-and-picture-in-picture-view-layout/27218) in a dockable widget that you can make float over other views, displayed in a second monitor, placed right below your module panel, etc.
