Enable "Edit in 3D View" Via qMRMLSegmentEditorWidget

segmentation

(Amanda Hope) #1

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


(Amanda Hope) #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.


How to Enable "Editin3DViews" via python module code