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

1 Like

Since then did anything change? I mean is there a default diplay node (for volumes, for models) where I could simply change color node once and do not observe the scene?

You can change the default color, color node, etc. in a display node and set in the scene as default node to make it the default for all newly loaded nodes.

For DICOM volumes, the default colormap may be overridden depending on the image modality:

1 Like