# Paint Effect Util with loadable module

**URL:** <https://discourse.slicer.org/t/paint-effect-util-with-loadable-module/181>\
**Category:** Support\
**Created:** [April 24, 2017, 3:04pm UTC](https://discourse.slicer.org/t/paint-effect-util-with-loadable-module/181 "2017-04-24T15:04:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![basti](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@basti](https://discourse.slicer.org/u/basti)\
**Post date:** [April 24, 2017, 3:04pm UTC](https://discourse.slicer.org/t/paint-effect-util-with-loadable-module/181/1 "2017-04-24T15:04:16Z")

</div>

I’m new with slicer and I’m trying to build a module which includes the paint effect. Right now I have two problems:

- I don’t know how to create and link a label map. The code below just works when I create a Label Map using the Editor Module.

- When I change the radius of the sphere it creates a new circle, but on painting the size stays the same.

![](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/1X/bf5c4cef2e5e467f2993f5325a8b11850f3cb600.jpg)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 24, 2017, 3:28pm UTC](https://discourse.slicer.org/t/paint-effect-util-with-loadable-module/181/2 "2017-04-24T15:28:17Z")

</div>

Hi - we’ve moved active development to the Segment Editor module, particularly for segmentation tools embedding inside other modules.

[https://www.slicer.org/wiki/Documentation/Nightly/Modules/SegmentEditor](https://www.slicer.org/wiki/Documentation/Nightly/Modules/SegmentEditor)

I think @lassoan, @cpinter or @che85 can point to some examples of how to do the embedding.

---

<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:** [April 24, 2017, 3:40pm UTC](https://discourse.slicer.org/t/paint-effect-util-with-loadable-module/181/3 "2017-04-24T15:40:52Z")

</div>

The simplest embedding example is the SegmentEditor module itself.  
For a more complex example, have a look at [https://github.com/QIICR/QuantitativeReporting/blob/master/QuantitativeReporting.py](https://github.com/QIICR/QuantitativeReporting/blob/master/QuantitativeReporting.py).

You can customize which effects are displayed in what order. You can also hide node selectors, etc.
