Created
August 11, 2011 13:25
-
-
Save dbr/1139639 to your computer and use it in GitHub Desktop.
More sane method of doing Nuke panel UI's
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = nukescripts.panels.PythonPanel() | |
# Accessible via the knob name (not the UI string \o/) | |
p.addKnob(nuke.String_Knob("start", "Staaaart value")) | |
# Or accessible via the knob object | |
or_this_way = nuke.String_Knob("finish", "Finish value. And it's not used for the UI!") | |
p.addKnob(or_this_way) | |
p.showModalDialog() | |
print p.knobs()['start'].value() | |
print or_this_way.value() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment