Re: [Nuke-python] Deleting user knobs with Python

2016-01-26 Thread Daniel Stein
Yea, that is sweet. If you have any groups on the target tab it will mess things up though since they're also classed as Tab_Knobs and will be the next one found. In that case maybe you could specify a target stop tab as well. On 27 January 2016 at 01:57, Igor Majdandzic wrote: > Nice one Ben. >

Re: [Nuke-python] Deleting user knobs with Python

2016-01-26 Thread Igor Majdandzic
Nice one Ben. Am 27.01.2016 7:02 vorm. schrieb Ben Dickson : > > You can get knobs in order by using the nuke.Node.knob(n) and the number > of knobs via nuke.Node.numKnobs > > Meaning you can iterate over the knobs, start removing knobs when you > get to the target tab, and stop at the next Tab

Re: [Nuke-python] Deleting user knobs with Python

2016-01-26 Thread Ben Dickson
You can get knobs in order by using the nuke.Node.knob(n) and the number of knobs via nuke.Node.numKnobs Meaning you can iterate over the knobs, start removing knobs when you get to the target tab, and stop at the next Tab_Knob: def remove_user_knobs(node): in_user_tab = False to_rem

Re: [Nuke-python] Deleting user knobs with Python

2016-01-22 Thread Daniel Stein
I think Igor's suggestion would be the easiest workaround to implement moving forward. If you haven't already stored that information another option is get the output of node.writeKnobs with the nuke.WRITE_USER_KNOB_DEFS flag and parse it to find the tab knobs and the knobs nested inside them. Sup

Re: [Nuke-python] Deleting user knobs with Python

2016-01-22 Thread Igor Majdandzic
nope, thats what he meant. He has to kill all the knobs on the tab before he can remove the tab itself Am 22.01.2016 um 17:46 schrieb Fredrik Averpil: Not in front of a machine at the moment but... Does this work? nuke.removeKnob( myknob ) // Fredrik On Fri, Jan 22, 2016 at 12:20 PM Igor Ma

Re: [Nuke-python] Deleting user knobs with Python

2016-01-22 Thread Fredrik Averpil
Not in front of a machine at the moment but... Does this work? nuke.removeKnob( myknob ) // Fredrik On Fri, Jan 22, 2016 at 12:20 PM Igor Majdandzic wrote: > Hey Abraham, > I dont know if there is a nice fast fancy way of doing this. But you could > store a directory in a hidden knob, key cou

Re: [Nuke-python] Deleting user knobs with Python

2016-01-22 Thread Igor Majdandzic
Hey Abraham, I dont know if there is a nice fast fancy way of doing this. But you could store a directory in a hidden knob, key could be the tab and knobs are the values. Work around I know, but it should do the trick. Cheers Igor Am 21.01.2016 um 12:59 schrieb Schneider, Abraham: Hi the

[Nuke-python] Deleting user knobs with Python

2016-01-21 Thread Schneider, Abraham
Hi there!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