Segment the Active Volume

Is it possible to segment the active volume so that all other components of the volume are completely removed? For example:

1 Like

You can use the “Mask volume” editor effect to erase areas in the volume outside of the segment.
image

Do you happen to know how to accomplish this with Python code?

try the python code below