Skip to content

Instantly share code, notes, and snippets.

@dbr
Created August 11, 2011 13:25
Show Gist options
  • Save dbr/1139639 to your computer and use it in GitHub Desktop.
Save dbr/1139639 to your computer and use it in GitHub Desktop.
More sane method of doing Nuke panel UI's
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