Problem summary The Color Management knob default resets when clearing or closing a comp in Nuke.
Customer reported version Nuke 13.0v4
Customer reported platform Centos7
Steps to reproduce 1) In Nuke, open the script editor and run the following code:
nuke.knobDefault('Root.colorManagement', 'OCIO')
2) Open the Project Settings (S in Node Graph) and select Color. 3) Select Color Management and set the dropdown to OCIO. 4) Select File > Clear Script 5) Open the Project Settings and view the Color Management knob.
Expected behavior The Color Management knob should retain the nuke.knobDefault setting.
Actual behavior The knob default is reset to Nuke.
Workaround You should be able to workaround the issue by using a addOnCreate callback, instead of nuke.knobDefault(). For example:
def setOCIOColorManagement(): if nuke.Root()['colorManagement'].value() == 'Nuke': nuke.Root()['colorManagement'].setValue('OCIO')