# create a scripted segment editor effect by extension wizard  

**URL:** <https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409>\
**Category:** Support\
**Created:** [September 9, 2025, 1:15pm UTC](https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409 "2025-09-09T13:15:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeonHaoWI](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leonhaowi/32/81000_2.png) [@LeonHaoWI](https://discourse.slicer.org/u/LeonHaoWI)\
**Post date:** [September 9, 2025, 1:15pm UTC](https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409/1 "2025-09-09T13:15:07Z")

</div>

I’m new to slicer development, try to create a scripted module base on segment editor effect,

I’m using 5.9 version, and try to create a skeleton by using extension wizard, no information is shown in error log window, but the created module can’t be found in module finder,

I have tried restart the application, the module path have been added to additional module paths. And the created module can be find in setings-modules.

could any one tell me what have I missed. I suppose such a module don’t need to build slicer from source…

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [September 9, 2025, 1:17pm UTC](https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409/2 "2025-09-09T13:17:16Z")

</div>

Segment editor effects do not appear as modules, but as new tools (“effects”) in the Segment Editor module

> **[Segment editor — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html)**

What are you trying to achieve? What does your module do?

---

<div class="post-metadata">

**Author:** ![LeonHaoWI](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leonhaowi/32/81000_2.png) [@LeonHaoWI](https://discourse.slicer.org/u/LeonHaoWI)\
**Post date:** [September 9, 2025, 1:57pm UTC](https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409/3 "2025-09-09T13:57:16Z")

</div>

Thanks for reply.

I’m trying to add a tinny function(push button) to segment editor, to allow auto save current segment and load next data, then add segment node and couple of segment.(for improve efficiency of annotation process).

When create a scripted module by extension wizard, I found there is a module template type called scriptedsegmenteditoreffect, suppose it is the easiest way to customize segment editor module.

But after creation, the module can’t be found in module finder, but can be found in edit- application setings-modules.

So, did I misunderstand this template?

---

<div class="post-metadata">

**Author:** ![LeonHaoWI](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/leonhaowi/32/81000_2.png) [@LeonHaoWI](https://discourse.slicer.org/u/LeonHaoWI)\
**Post date:** [September 15, 2025, 1:50am UTC](https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409/4 "2025-09-15T01:50:19Z")

</div>

I figured out a way: [Creating a basic Paint Foreground and Paint Background Tool - Support - 3D Slicer Community](https://discourse.slicer.org/t/creating-a-basic-paint-foreground-and-paint-background-tool/17050/6)

Instance segment editor widget. Thank Pinter for your remind.

But I still don’t understand why the template don’t work.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [September 15, 2025, 2:18pm UTC](https://discourse.slicer.org/t/create-a-scripted-segment-editor-effect-by-extension-wizard/44409/5 "2025-09-15T14:18:07Z")

</div>

> [@LeonHaoWI](#):
>
> I’m trying to add a tinny function(push button) to segment editor

> [@LeonHaoWI](#):
>
> scriptedsegmenteditoreffect, suppose it is the easiest way to customize segment editor module.

> [@LeonHaoWI](#):
>
> But I still don’t understand why the template don’t work.

Segment Editor has its own little ecosystem, and it is very complex. What you can do with segment editor effect modules is to _add a new editing tool (effect)_, nothing else. If you want to change the module, it is not possible. You can get the Segment Editor module from your own module, and insert some widget in a layout you choose, but it’s a hack, and the only way I can currently imagine.

Most of the Segment Editor module is just the segment editor widget, so you could just create your own “batch segment editor” module based on the original, where you add that button. Sorry for the late answer.
