# Change default settings for Volume Rendering module

**URL:** https://discourse.slicer.org/t/change-default-settings-for-volume-rendering-module/34189
**Category:** Support
**Created:** [February 7, 2024, 4:19pm UTC](https://discourse.slicer.org/t/change-default-settings-for-volume-rendering-module/34189 "2024-02-07T16:19:04Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ruili](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@ruili](https://discourse.slicer.org/u/ruili)
#### Post date: [February 15, 2024, 5:16pm UTC](https://discourse.slicer.org/t/change-default-settings-for-volume-rendering-module/34189/3 "2024-02-15T17:16:54Z")

</div>

Thank you. Your discussion on the forum [here](https://discourse.slicer.org/t/setting-the-volume-property-to-be-used-when-a-volume-is-rendered-automatically/16653) is also very helpful. I think for my purpose loading my volume property file (.vp) is sufficient, and I have managed to add the following code to my .slicerrc.py so that my .vp file is loaded automatically:

```auto
vp_file = '/path/to/myVolumeProperty.vp'
volRenLogic = slicer.modules.volumerendering.logic()
volRenLogic.AddVolumePropertyFromFile(vp_file)

```

However, I now still have to go to “Inputs” section in the volume rendering module to select this volume property every time. Do you know how I can set it as the default volume property in .slicerrc.py? I am really unfamiliar with writing python scripts for slicer and have found it very difficult to find the write function to use, so your help will be very much appreciated!

---

_[View the full topic](https://discourse.slicer.org/t/change-default-settings-for-volume-rendering-module/34189)._
