ID 494532 - The Color Management knob default resets when clearing or closing a comp in Nuke

Follow

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')

nuke.addOnCreate(setOCIOColorManagement, nodeClass = 'Root')

Reproduced by Support in:
Nuke 13.0v5 - Windows 10, CentOS 7, macOS 10.15
Nuke 13.0v1 - Windows 10, CentOS 7, macOS 10.15 - regression

Unable to reproduce bug in:
Nuke 12.2v9 - Windows 10, CentOS 7, macOS 10.15

Earliest version tested
Nuke 12.2v9 - This issue doesn't appear in this version and has regressed

    We're sorry to hear that

    Please tell us why