# How to Enable "Editin3DViews" via python module code

**URL:** <https://discourse.slicer.org/t/how-to-enable-editin3dviews-via-python-module-code/5706>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [February 8, 2019, 9:59pm UTC](https://discourse.slicer.org/t/how-to-enable-editin3dviews-via-python-module-code/5706 "2019-02-08T21:59:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [February 8, 2019, 10:25pm UTC](https://discourse.slicer.org/t/how-to-enable-editin3dviews-via-python-module-code/5706/2 "2019-02-08T22:25:32Z")

</div>

Hi Amanda,

I see you have posted this twice in less than an hour. Please, keep it contained to one post and someone on the forum will respond to you likely within the day.

> [@Enable "Edit in 3D View" Via qMRMLSegmentEditorWidget](https://discourse.slicer.org/t/enable-edit-in-3d-view-via-qmrmlsegmenteditorwidget/5701/2):
>
> 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.

---

_[View the full topic](https://discourse.slicer.org/t/how-to-enable-editin3dviews-via-python-module-code/5706)._
