I am working with multiple segmentations. When entering:
sliceController = slicer.app.layoutManager().sliceWidget(“Red”).sliceController()
I am able to toggle through the fill states of the segmentation selected in the segmentation node selector. But I struggle to find a python call to switch to another segmentation - I have to select it manually out of the dropdown menu in the slice viewer window.
So my Question is: Is there any way I can specify in the Python Interactor which segmentation the .toggleSegmentationOutlineFill() Method refers to?
Operating system: WIn11
Slicer version: 5.0.3