If the knob is not written, neither are its flags. Either set the DO_NOT_WRITE flag in onCreate, or set the SAVE_MENU flag to force nuke to save the contents of the menu in the script.

-Nathan


-----Original Message----- From: Brandon Harris
Sent: Friday, September 06, 2013 11:47 AM
To: Nuke Python discussion ‎[[email protected]]‎
Subject: [Nuke-python] Persistant Nuke Knob Flags

I have a gizmo with a dynamically generated CascadingEnumeration_Knob. The issue with this gizmo is that it errors on script load since the knob is empty until the inputChanged callback is run. There is a flag I can set on the knob (nuke.DO_NOT_WRITE), but this is not persistent it seems.

Any ideas on how to properly setup this gizmo and its script to load properly without erroring?

Error I get is

RuntimeError: rCameraSwitch1.shot: Bad value for shot : sh0270_joinViews

sh0270_joinViews is what was in the enum knob when the script was saved.

cheers,
Brandon L. Harris
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to