State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:510113|
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.
nuke.nodePaste("path/to/script.nk") allows the node to be placed in the Node Graph with the correct saved values.We're sorry to hear that
Please tell us why