class newblur(nuke.Node):
def __init__(self):
nuke.Node.__init__(self)
self.x=nuke.Int_Knob('test','test')
self.addKnob(self.x)
a=newblur('Blur')
it creates a Node with no error, but as you can see in my script , i’m trying to add new knob . But there’s no new knob created. Yes, i can use this script to get new knob :
a=newblur('Blur')
a.addKnob(nuke.Int_Knob('test','test'))
but this is not i prefer. I want to have my new Node class is ready with its new knob as i instantiate it. Since i get no error , it’s hard to find out what’s wrong. Can anyone help me out ? what is missing? any Pythonerzz pls?
thanx
Post a Comment