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

Hey all,

Is there a way (python or otherwise) to save and load the “transfer curves”, meaning the scalar opacity mapping, scalar color mapping, and gradient opacity mapping settings to a file for reloading later? I do not use any of the presets, and it would be nice to be able to save mappings for later.

Totally fine if this is only doable from python with telling a node (or nodes) to write/read to/from disk.

Thanks!

-Hollister

These links should help:

Most excellent! Thanks much.

-Hollister

Here is an example from SlicerMorph. A mrml file that defines the presets, and a short resource script that loads it into the scene (you only care the top couple lines, the rest are other SlicerMorph preferences).

1 Like