State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:166974|
/filepath/script.nk:Viewer1.masking_ratio: Bad value for masking_ratio : 8 2)Create an onCreate callback which manually adds the masking ratios to the Viewer nodes
def OnViewerCreate(): node = nuke.thisNode() knob = node['masking_ratio'] allvalues = knob.values() + ['2.39\t2.39:1'] ### Add custom masking ratio and ratio name knob.setValues(allvalues) knob.setValue('2.39') ### Set to desired masking ratio ### The above line will set the masking ratio for all viewers the that masking ratio when creating Viewer nodes, disable it if undesirednuke.addOnCreate(OnViewerCreate, nodeClass="Viewer")import custom_guidescustom_guides.viewer_masks.append(custom_guides.guides.MaskGuide("2.39:1", 2.39)) Adding the above code to your init.py should set your masking_ratio the desired ratio.
Nuke11.0v2 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.0v1 - Windows 7
Nuke10.5v6 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v1 - Windows 7
Nuke10.0v6 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.0v1 - Windows 7
Nuke9.0v9 - Windows 7 - Mac10.12 - CentOS6.9
Nuke9.0v1 - Windows 7
Nuke8.0v7 - Windows 7 - Mac10.12 - CentOS6.9
Nuke7.0v10 - Windows 7 - Mac10.12 - CentOS6.9
We're sorry to hear that
Please tell us why