Load a segmentation into the 3D viewer from a module

How would I go about loading a segmentation into the 3D viewer from a python module? Similarly, how would I go about doing it for a volume?

Is there any way to load both at once into the 3d viewer but make the volume partially transparent?

Please consult the script repository:

Load a segmentation
Show segmentation in 3D
Show a volume rendering automatically when volume is loaded
Transparency

2 Likes