Disabling compression for all volumes (including segmentations)

I am trying to use the sample script Documentation/Nightly/ScriptRepository - Slicer Wiki

to disable compression for all volume types by putting this example to my .slicerrc.py

#set the default volume storage to not compress by default
defaultVolumeStorageNode = slicer.vtkMRMLVolumeArchetypeStorageNode()
defaultVolumeStorageNode.SetUseCompression(0)
slicer.mrmlScene.AddDefaultNode(defaultVolumeStorageNode)
logging.info(“Volume nodes will be stored uncompressed by default”)

But this doesn’t disable compression for segmentation nodes (download MrHead.nrrd, create a segment and see in the save as dialog box that while compression is unchecked for MRHead.nrrd, it is still enabled for _seg.nrrd segmentation volume).

There is another snippet that disables compression specifically for segmentations,

#set the default volume storage to not compress by default
defaultVolumeStorageNode = slicer.vtkMRMLSegmentationStorageNode()
defaultVolumeStorageNode.SetUseCompression(0)
slicer.mrmlScene.AddDefaultNode(defaultVolumeStorageNode)
logging.info("Segmentation nodes will be stored uncompressed

But I want to do it for both volumes and segmentation, is that possible?

Yes, of course, you can define default nodes for any number of node types.

Yes, actually just including both snippets in the same .slicerrc.py worked. I thought the second setting defaultVolumeStorageNode a second time would overwrite. But works great.