You could always force a switch back to the main tab by 'touching' any knob in the main tab.
node[knob].setFlag(0) # where 'knob' is a knob in the main tab However, if you're hiding both your knob and tab anyway, why don't you just add the hidden knob and skip adding the tab altogether? On Wed, Jan 4, 2012 at 1:38 PM, John Vanderbeck < [email protected]> wrote: > ** > > Hey gang, > > Is there any way that I can make a new knob and add it to a node through > Python, without the UI panel for that node changing? I want the knob > addition to be completely transparent to the user. They shouldn’t even > know it is happening. I’m currently doing this: > > tab = nuke.Tab_Knob('fac', 'fac') > > tab.setVisible(False) > > tab.setFlag(0x0000000000000400) > > thisNode.addKnob(tab) > > knob = nuke.String_Knob('oldName', 'oldName') > > knob.setVisible(False) > > knob.setValue(node_name) > > thisNode.addKnob(knob) > > Which works, but the UI changes tabs when this happens. > > John Vanderbeck > > Technical Artist > > Digital Domain Media Group > > NOTICE: This communication may contain privileged or other confidential > information. If you have received it in error, please advise the sender by > reply email and immediately delete the message and any attachments without > copying or disclosing the contents. Thank you. > > > _______________________________________________ > 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
