Want to make this vtkMRMLSegmentEditorNode::PaintAllowedOutsideAllLockedSegments


I want to pass individual segments that cannot be painted over.
Where can I access the segmentation mask so I can specify which segments can be painted over?



There are many options for this. You can use masking settings or temporarily move protected segments to another segmentation node. Moving is immediate and lossless, so you can do it easily as many times as needed.