# Save & load (scalar opacity | Scalar color | gradient opacity) mapping settings from volume rendering?

**URL:** https://discourse.slicer.org/t/save-load-scalar-opacity-scalar-color-gradient-opacity-mapping-settings-from-volume-rendering/19271
**Category:** Support
**Created:** [August 19, 2021, 12:55pm UTC](https://discourse.slicer.org/t/save-load-scalar-opacity-scalar-color-gradient-opacity-mapping-settings-from-volume-rendering/19271 "2021-08-19T12:55:45Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [August 19, 2021, 2:35pm UTC](https://discourse.slicer.org/t/save-load-scalar-opacity-scalar-color-gradient-opacity-mapping-settings-from-volume-rendering/19271/2 "2021-08-19T14:35:31Z")

</div>

These links should help:

> <https://github.com/SlicerMorph/Spr_2021/blob/cbd6e1d269fdb256d2ab0f42933a1422c8c8fff6/Day_2/VolumeRendering/VolumeRendering.md#saving-your-transfer-functions>

> [@I want to boot up with my very own color map and a black background](https://discourse.slicer.org/t/i-want-to-boot-up-with-my-very-own-color-map-and-a-black-background/16383/8):
>
> Ok…I have hit a roadblock. I am following the guidance here: [https://slicer.readthedocs.io/en/latest/developer\_guide/modules/volumerendering.html#how-to-register-custom-volume-rendering-presets](https://slicer.readthedocs.io/en/latest/developer_guide/modules/volumerendering.html#how-to-register-custom-volume-rendering-presets) I have a new file called MyPresets.mrml in my Slicer Scene Location directory along with a PNG thumbnail. Now I come to this instruction… " Use the following code to read all the custom presets from MyPresets.mrml and load it into the scene:" I do not know how to ‘use’ the code. I pasted it in the Py…

---

_[View the full topic](https://discourse.slicer.org/t/save-load-scalar-opacity-scalar-color-gradient-opacity-mapping-settings-from-volume-rendering/19271)._
