# Change preview of Grow from seeds effect

**URL:** <https://discourse.slicer.org/t/change-preview-of-grow-from-seeds-effect/7336>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [June 27, 2019, 10:02am UTC](https://discourse.slicer.org/t/change-preview-of-grow-from-seeds-effect/7336 "2019-06-27T10:02:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [June 27, 2019, 10:02am UTC](https://discourse.slicer.org/t/change-preview-of-grow-from-seeds-effect/7336/1 "2019-06-27T10:02:43Z")

</div>

Hi all,

I would like to change the preview of the `Grow from seeds` effect of the `Segment Editor` module from the default “fill only” to “outline only”. I dived into the code a bit and I think I need access to the [`previewNode`](https://github.com/Slicer/Slicer/blob/2b25e080bce23609710ad87a82030d3fe01c4286/Modules/Loadable/Segmentations/EditorEffects/Python/AbstractScriptedSegmentEditorAutoCompleteEffect.py#L239) of the effect. Where can I find the instance of [`SegmentEditorGrowFromSeedsEffect`](https://github.com/Slicer/Slicer/blob/bf5285be34b88a2612459fadb6715f7c57a196d4/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorGrowFromSeedsEffect.py#L6) from Python?

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [June 27, 2019, 10:20am UTC](https://discourse.slicer.org/t/change-preview-of-grow-from-seeds-effect/7336/2 "2019-06-27T10:20:31Z")

</div>

Never mind, I think I found it:

```python
e = segmentEditorWidget.activeEffect()
ps = e.parameterSetNode()
previewNode = ps.GetNodeReference("SegmentationResultPreview")

```
