Can anyone tell me why the knobChanged function won't print the knob name when
it's changed?
I came across this thread that basically asks the same question but I can't
wrap my head around it.
https://www.mail-archive.com/[email protected]/msg03270.html
class ShapePanel(nukescripts.PythonPanel):
def __init__(self):
IDs = ['12345','56789','09876']
self.p = nukescripts.PythonPanel("ELEMENT")
self.d = nuke.Enumeration_Knob('Element', 'Element : ', IDs)
self.p.addKnob(self.d)
self.ret = self.p.showModalDialog()
self.myID = self.d.value()
def knobChanged(self, knob):
if knob is self.d:
print knob['name']
ShapePanel()
Thank you
--
Bruno-Pierre Jobin_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python