# Segment editor tools arrangement

**URL:** <https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285>\
**Category:** Feature requests\
**Tags:** segmentation\
**Created:** [March 1, 2021, 12:09pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285 "2021-03-01T12:09:50Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mohammed\_alshakhas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohammed_alshakhas/32/10025_2.png) [@mohammed\_alshakhas](https://discourse.slicer.org/u/mohammed_alshakhas)\
**Post date:** [March 1, 2021, 12:09pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/1 "2021-03-01T12:09:50Z")

</div>

im newly using the preview version , and one thing i definitely don’t like is the tools arrangement

im so used to the old one , work perfect with keyboard shortcuts and all

now im keeping hitting 1 for paint and getting threshold

id love the old one back please ![Screen Shot 2021-03-01 at 15.09.17](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/0/60b633b05e9e1163ab84cd962642de55154da395.png)

---

<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:** [March 1, 2021, 2:09pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/2 "2021-03-01T14:09:57Z")

</div>

In most cases, you need to start segmentation with thresholding (to check if global thresholding can give meaningful segmentation results, to choose intensity range for painting, or create a mask segment).

Of course each segmentation workflow is different, so you may want to change defaults. For example, you can [customize order and visibility of Segment editor effects](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Customize_list_of_displayed_Segment_editor_effects) and can even create custom [keyboard shortcuts for switching between effects](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Create_keyboard_shortcut_for_toggling_sphere_brush_for_paint_and_erase_effects) and customize almost anything on the GUI and in the application behavior by a few lines of Python code. You can place these code snippets in your application startup file to make the changes persistent.

---

<div class="post-metadata">

**Author:** ![mohammed\_alshakhas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohammed_alshakhas/32/10025_2.png) [@mohammed\_alshakhas](https://discourse.slicer.org/u/mohammed_alshakhas)\
**Post date:** [March 1, 2021, 2:13pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/3 "2021-03-01T14:13:22Z")

</div>

I’m sure you got great reason for the change , however mostly I use pain /erase / draw

Threshold is first but much less frequent .

I’m programmming illetrate , I’m just a humble Maxillofacial surgeon enjoying slicer too much 😊

---

<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:** [March 1, 2021, 2:22pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/4 "2021-03-01T14:22:46Z")

</div>

Customizing effect order does not require any programming experience. Hit Ctrl+3 and copy-paste this into the displayed Python interactor:

```python
segmentEditorWidget = slicer.modules.segmenteditor.widgetRepresentation().self().editor
segmentEditorWidget.setEffectNameOrder(['Paint', 'Erase'])

```

---

<div class="post-metadata">

**Author:** ![mohammed\_alshakhas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohammed_alshakhas/32/10025_2.png) [@mohammed\_alshakhas](https://discourse.slicer.org/u/mohammed_alshakhas)\
**Post date:** [March 1, 2021, 2:25pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/5 "2021-03-01T14:25:53Z")

</div>

thats great , thats too much programming to me  
works perfect though

---

<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:** [March 1, 2021, 2:32pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/6 "2021-03-01T14:32:49Z")

</div>

We could add a graphical user interface for configuring effect order (for example, a text input box in application settings where user can list segment editor effect names in preferred order), but so far we have no heard from too many people that they would need this. Users are either fine with the current order or they are OK with changing it by scripting.

---

<div class="post-metadata">

**Author:** ![mohammed\_alshakhas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohammed_alshakhas/32/10025_2.png) [@mohammed\_alshakhas](https://discourse.slicer.org/u/mohammed_alshakhas)\
**Post date:** [March 1, 2021, 2:39pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/7 "2021-03-01T14:39:35Z")

</div>

id love such feature , even the list of favorite module would be great if can be customized .  
like if love to have crop volume in my favorite but didn’t figure out how .

one more thing is that if possible to have favorite views . i only use 3d only , conventional , four up , two side by side .  
the rest are not useful to me . id love to be able to customize the list and remove the ones i never use .

thank you for considering these points

---

<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:** [March 1, 2021, 2:48pm UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/8 "2021-03-01T14:48:38Z")

</div>

Favorite modules: You can already customize the favorite modules with a GUI, in application settings - see [here](https://slicer.readthedocs.io/en/latest/user_guide/user_interface.html#toolbar) for details.

Favorite views: We have been planning to add this, I’ve submitted a [feature request](https://github.com/Slicer/Slicer/issues/5497) to make sure we consider it for the next release. Until then, you can [assign keyboard shortcuts to switch between views](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Customize_keyboard_shortcuts), which is probably even faster than using toolbar buttons anyway.

---

<div class="post-metadata">

**Author:** ![mohammed\_alshakhas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohammed_alshakhas/32/10025_2.png) [@mohammed\_alshakhas](https://discourse.slicer.org/u/mohammed_alshakhas)\
**Post date:** [March 2, 2021, 5:10am UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/9 "2021-03-02T05:10:21Z")

</div>

i didn’t get how can i change my favorite module ,

 ![Screen Shot 2021-03-02 at 08.07.34](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/3/5368a16320dde313aed780024ecfcfbce2aba1c7.png)

i also love to be able to customize too bar more freely rather than fewer options

 ![Screen Shot 2021-03-02 at 08.07.56](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/d/cd324981e655ce439f42dcc9cea44d2fa4108e13.png)

---

<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:** [March 2, 2021, 5:16am UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/10 "2021-03-02T05:16:08Z")

</div>

How to change your list of favorite modules: “The list can be customized using menu: Edit / Application settings / Modules / Favorite Modules. Drag-and-drop modules from the Modules list to the Favorite Modules list to add a module.” Let us know if anything is not clear or any suggestions how to improve these instructions.

> [@mohammed\_alshakhas](#):
>
> i also love to be able to customize too bar more freely rather than fewer options

You are absolutely free to customize the toolbar, add new toolbars, invent new actions, etc. It just requires adding a few lines of Python script to the Slicer startup file. You can cut&paste the script from examples in the script repository, but if you describe what features you would put in the toolbar we can put it together for you.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 2, 2021, 5:32am UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/11 "2021-03-02T05:32:39Z")

</div>

> [@lassoan](#):
>
> We could add a graphical user interface for configuring effect order (for example, a text input box in application settings where user can list segment editor effect names in preferred order), but so far we have no heard from too many people that they would need this.

Actually it would be great to reorder the effects by dragging and dropping the icons positions (like the top toolbar).

---

<div class="post-metadata">

**Author:** ![mohammed\_alshakhas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohammed_alshakhas/32/10025_2.png) [@mohammed\_alshakhas](https://discourse.slicer.org/u/mohammed_alshakhas)\
**Post date:** [March 2, 2021, 5:33am UTC](https://discourse.slicer.org/t/segment-editor-tools-arrangement/16285/12 "2021-03-02T05:33:47Z")

</div>

thats what i would love to have !
