State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:552205|
Problem summary:nuke.knobDefault() can prevent file format specific knobs embedded in Gizmos from saving
Customer reported version:
Nuke 12.2v10
Customer reported platform:
Ubuntu
Steps to reproduce:
1) Download the attached TestGizmo.gizmo and place it inside the ~/.nuke directory.
2) Add the following code to the ~/.nuke/init.py file:
nuke.knobDefault("TestGizmo.file_type","exr")nuke.knobDefault("TestGizmo.datatype", "32 bit float")nuke.knobDefault("TestGizmo.compression", "PIZ Wavelet (32 scanlines)")nuke.knobDefault("TestGizmo.raw","True")nuke.knobDefault("TestGizmo.render_order","12")nuke.knobDefault("TestGizmo.frame_mode","offset")nuke.knobDefault("Write.file_type","exr")nuke.knobDefault("Write.exr.datatype", "32 bit float")nuke.knobDefault("Write.exr.compression", "PIZ Wavelet (32 scanlines)")nuke.knobDefault("Write.raw","True")nuke.knobDefault("Write.render_order","12")nuke.knobDefault("Write.frame_mode","offset")3) Launch Nuke and create a TestGizmo node.
knobDefault() for both a user knob and Class knob that is file format specific should not prevent the user knob from saving its value.nuke.knobDefault(), if nuke.knobDefault() has also been used on the original Class knob embedded in the Gizmo.Write.exr.datatype, and Write.exr.compression) allows the TestGizmo knobs to save correctly. However, this means that the Write node and TestGizmo knobDefaults are mutually exclusive, and only one can be active at a time.We're sorry to hear that
Please tell us why