Change default colour palette

Hi All,

I am hoping to change the default colourmap that is applied to all loaded volumes from Grey to a custom map I’ve added to the list by putting a file in the colors directory. Is this something simple to do? Alternatively, I would like to know how to run a script which automatically runs when a new volume is added.

Thanks,

  • Jon

You could do this yes. You could observe the scene for new nodes and then change the volume’s display node. Search these pages for slicerrc.py, NodeAddedEvent, and DisplayNode to get the idea.

https://www.slicer.org/wiki/Documentation/Nightly/Developers/Python_scripting

https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository