Enable "Edit in 3D View" Via qMRMLSegmentEditorWidget

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.