# A Segment Selector SegmentEditorEffect for large segmentations

**URL:** <https://discourse.slicer.org/t/a-segment-selector-segmenteditoreffect-for-large-segmentations/48726>\
**Category:** Development\
**Created:** [November 5, 2026, 9:33am UTC](https://discourse.slicer.org/t/a-segment-selector-segmenteditoreffect-for-large-segmentations/48726 "2026-11-05T09:33:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shai-ikko](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shai-ikko/32/15765_2.png) [@shai-ikko](https://discourse.slicer.org/u/shai-ikko)\
**Post date:** [November 5, 2026, 9:33am UTC](https://discourse.slicer.org/t/a-segment-selector-segmenteditoreffect-for-large-segmentations/48726/1 "2026-11-05T09:33:32Z")

</div>

Hi,

We’ve had a need to edit large segmentations, with dozens of segments (sometimes more than a hundred). Selecting segments from the segment list was extremely cumbersome, so we wrote a SegmentEditorEffect which lets user pick segments by clicking on them in the slice views. This raised two questions:

1. Is it just us, or would others be interested?

2. While doing this, we noted that when a segment is selected, the segment table is not scrolled to make it visible; and to reach the segment table to fix this, we needed to walk through the Qt element tree, which felt “dirty”:

```python
    editorModule = slicer.util.getModule("SegmentEditor")
    self.editor = slicer.util.getModuleGui(editorModule).editor
    resizable = self.editor.findChild(
        ctk.ctkExpandableWidget, "SegmentsTableResizableFrame"
    )
    segTableView = resizable.findChild(
        slicer.qMRMLSegmentsTableView, "SegmentsTableView"
    )
    self.tableView = segTableView.tableWidget()

```

Should these be fixed in Slicer itself? That is, would it be accepted if we made the table scroll to selected segment when the selection changes, and/or exposed the table view/widget in a more structured API?

Thanks!

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [November 6, 2026, 4:57pm UTC](https://discourse.slicer.org/t/a-segment-selector-segmenteditoreffect-for-large-segmentations/48726/2 "2026-11-06T16:57:50Z")

</div>

> [@shai-ikko](#):
>
> 1. Is it just us, or would others be interested?

I would be.

> [@shai-ikko](#):
>
> 1. While doing this, we noted that when a segment is selected, the segment table is not scrolled to make it

Yep, that would be great too!
