I have some user knobs in my root node, that I want to get rid of. It's a 'tab_knob' at the root level (let's call it 'testtab'), that contains several different knobs (strings, etc.). Now I want to delete all the knobs inside this tab knob and the tab knob itself.
I can get to the tab knob via "myknob = nuke.Root().knob('testtab')" and I can remove knobs like this: "nuke.Root().removeKnob(myknob)". This should work, if the tab is empty. But because the tab contains other knobs, it won't be deleted, as the removeKnob doesn't delete knobs recursively.
So how would I find all the knobs of nuke.Root() that belong to my tab knob, so that I can delete them first before deleting the tab knob itself?
Or is there an even better way to remove the tab and all the related knobs quickly?
Thanks, Abraham
Abraham Schneider
Head of VFX pipeline / VFX Supervisor
ARRI
Media GmbH
Türkenstr. 89, 80799 München
Phone +49 89 3809-1096
EMail aschnei...@arri.de
www.arri.de/arrimedia
Click here to visit us on
Facebook!
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python