Create knobs with python
Syntax to create knobs (in this example a text-knob):
1 2 3 |
c = nuke.toNode("YourNode") text = nuke.Text_Knob(name,label,"text") c.addKnob(knob) |
And here a short list of the most-needed knobs:
1 2 3 4 |
nuke.PyScript_Knob(name,label,py-script) nuke.Text_Knob(name,label,Text) nuke.Boolean_Knob(name,label) nuke.Enumeration_Knob(name,label,['value1', 'value2', 'value3']) |
Hide unconnected inputs on selected nodes Set keyframes in knobs with python