ID 510113 - The channels knob is not respected when using scriptReadFile() or scriptSource() to retrieve the Write node from a saved script

Follow

Problem summary
The channels knob is not respected when using scriptReadFile() or scriptSource() to retrieve the Write node from a saved script.
 
Customer reported version
nuke.12.2v4
 
Customer reported platform
fedora
 
Steps to reproduce
1) Add nuke.knobDefault("Write.exr.channels", "rgba") to an init.py in the .nuke directory (create one if not available.)
2) In Nuke, create a Write node.
3) Change the channels knob to 'All' channels.
4) Save the script and clear the current script with File > Clear.
5) Open the Script Editor and run the command:

nuke.scriptReadFile("path/to/script.nk")
6) Double-click the Write node to view it's Properties.
7) Verify the channels for the Write node.
 

Expected behavior
The Write node should display the value from the the saved script.
 
Actual behavior
The knob defaults in the init.py override the values when adding nodes from the scriptReadFile() or scriptSource() commands.
 
Workaround
Using the command nuke.nodePaste("path/to/script.nk") allows the node to be placed in the Node Graph with the correct saved values.
 
Reproduced by Support in:
Nuke 13.2v1 - Windows 10, CentOS 7
Nuke 13.1v1 - Windows 10
Nuke 13.0v1 - Windows 10
Nuke 12.0v1 - Windows 10
Nuke 11.0v1 - Windows 10
Nuke 10.0v1 - Windows 10
Nuke 9.0v1 - Windows 10, CentOS 7
 
Earliest version tested
Nuke 9.0v1 - This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why