Set Volume Rendering Options with PYTHON


I have seen some posts and scripts in the repository for setting parameters for volume rendering, however, I cannot seem to find a way to set the Synchronize with Volumes Module and set the Scalar Opacity Mapping, that is, I’d like a way to set the following options in my slicerrc file:


Also, is there a way to make the 3d volume rendering linked to the chosen volume similar to how all slice views will change if the selected volume is changed in any other slice view provided they are linked?

Also, can one zoom to the extent of the 3d volume easily, preferably with python?


  • Jon

These instructions describe how to find the implementation for features in the GUI and map them to code: