ID 602164 - defaultValue() and Nuke's GUI options can return different default values for knobs on Gizmos

Follow

Problem summary
defaultValue() and Nuke's GUI options can return different default values for knobs on Gizmos.
 
Customer reported version
Nuke 16.0v2
 
Customer reported platform
Rocky 8
 
Steps to reproduce
 
1) Open Nuke. 
 
2) Create a Gizmo by doing the following:

  • Create a Grade node.
  • Set it's blackpoint knob to 0.5 (or any non-default value).
  • Add it to a new Group.
  • Expose the Grade node's blackpoint knob on the Group.
  • Export the Gizmo
 
An example file is also attached.
 
3) Import the Gizmo.
 
4) Change the value of the blackpoint knob on the Gizmo.
 
5) Right click in the Properties panel > Set knobs to default. This sets the knob back to 0.5.
 
6) Run the following code in the Script Editor, with the Gizmo selected:
k = nuke.selectedNode().knob("blackpoint") print(k.defaultValue())
RESULT: This will print 0.0
 
Expected behaviour
The default value should be the same, via both the GUI option and Python.
 
Actual behaviour
The GUI option (right click > > Set knobs to default) seems to return the default knob value set on the Gizmo.
defaultValue() seems to return the default value of the internal Grade node.
 
Workaround
Unknown. 
 
Reproduced by support
This bug has been reproduced in:
Nuke 16.0v3 - Windows 11 - macOS 15 (Sequoia) 
Nuke 12.0v1 - Windows 11 - macOS 15 (Sequoia) 
 
Earliest version tested
Nuke 12.0v1
- This issue appears to be in all tested versions of the product
 

    We're sorry to hear that

    Please tell us why