# Set Volume Rendering Options with PYTHON

**URL:** <https://discourse.slicer.org/t/set-volume-rendering-options-with-python/18783>\
**Category:** Support\
**Created:** [July 18, 2021, 4:47am UTC](https://discourse.slicer.org/t/set-volume-rendering-options-with-python/18783 "2021-07-18T04:47:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Lesage](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jonathan_lesage/32/4693_2.png) [@Jonathan\_Lesage](https://discourse.slicer.org/u/Jonathan_Lesage)\
**Post date:** [July 18, 2021, 4:47am UTC](https://discourse.slicer.org/t/set-volume-rendering-options-with-python/18783/1 "2021-07-18T04:47:12Z")

</div>

Hello,

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:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/d/1d7b88f4d6059de69cafa5b50268858cd8933325.png)

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?

Thanks,

- Jon

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [July 19, 2021, 2:02pm UTC](https://discourse.slicer.org/t/set-volume-rendering-options-with-python/18783/2 "2021-07-19T14:02:15Z")

</div>

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

[https://slicer.readthedocs.io/en/latest/developer\_guide/python\_faq.html#how-to-find-a-python-function-for-any-slicer-features](https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html#how-to-find-a-python-function-for-any-slicer-features)
