# Enable "Edit in 3D View" Via qMRMLSegmentEditorWidget

**URL:** <https://discourse.slicer.org/t/enable-edit-in-3d-view-via-qmrmlsegmenteditorwidget/5701>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [February 8, 2019, 7:44pm UTC](https://discourse.slicer.org/t/enable-edit-in-3d-view-via-qmrmlsegmenteditorwidget/5701 "2019-02-08T19:44:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolsocks](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/coolsocks/32/3299_2.png) [@coolsocks](https://discourse.slicer.org/u/coolsocks)\
**Post date:** [February 8, 2019, 7:44pm UTC](https://discourse.slicer.org/t/enable-edit-in-3d-view-via-qmrmlsegmenteditorwidget/5701/1 "2019-02-08T19:44:56Z")

</div>

Hi I’m new to slicer development and I wanted to update my code to the 4.10 version. I just had a question of how to enable the “edit in 3D view” section using the qMRMLSegmentEditorWidget?

Thanks

---

<div class="post-metadata">

**Author:** ![coolsocks](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/coolsocks/32/3299_2.png) [@coolsocks](https://discourse.slicer.org/u/coolsocks)\
**Post date:** [February 8, 2019, 9:32pm UTC](https://discourse.slicer.org/t/enable-edit-in-3d-view-via-qmrmlsegmenteditorwidget/5701/2 "2019-02-08T21:32:26Z")

</div>

I got to this point:  
self.segmentEditorWidget.setActiveEffectByName(“Erase”)  
effect = self.segmentEditorWidget.activeEffect()  
effect.setParameter(“Editin3DViews”,“1”)  
effect.self().onApply()  
But whenever I attempt to erase, it will only rotate/displace the volume.
