code = 'nuke.message("do stuff")'

n = nuke.createNode('NoOp')

k = nuke.PyScript_Knob('doStuff', 'do stuff', code)

n.addKnob(k)



On 12/08/12 4:00 PM, Joerg Bruemmer wrote:
is it possible to create that python script button in python, as i want to 
build the whole node in python. Cant find it in docs.
Thanks!


Just use a Python Script Button and give it some python code like this:


NoOp {
name NoOp1
selected true
xpos 41
ypos -77
addUserKnob {20 User}
addUserKnob {22 dostuff l "do stuff" T "nuke.message('do stuff')" +STARTLINE}
}




On 11/08/12 8:41 PM, Joerg Bruemmer wrote:
hi guys,
is there a way to create a "refresh" button? like reset, grab, clear offset 
buttons in tracker i.e. and how do i assign an action onto it?
many thanks,
J._______________________________________________
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
_______________________________________________
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