Works great! Thanks a lot Nathan :).


-------------------------------
Simon Björk
Compositor/TD

+46 (0)70-2859503
www.bjorkvisuals.com

2015-07-27 23:54 GMT+02:00 Nathan Rusch <[email protected]>:

>   You can put your tab knobs in a tab group.
>
> class tmp_Panel(nukescripts.PythonPanel):
>     def __init__(self):
>         super(tmp_Panel, self).__init__("tmp")
>
>         self.first_tab = nuke.Tab_Knob("first", "first")
>         self.a = nuke.String_Knob("a", "a")
>         self.second_tab = nuke.Tab_Knob("second", "second")
>         self.b = nuke.String_Knob("b", "b")
>
>         self.btn = nuke.PyScript_Knob("btn", "button")
>
>         self.addKnob(nuke.BeginTabGroup_Knob())
>         for i in [self.first_tab, self.a, self.second_tab, self.b]:
>             self.addKnob(i)
>         self.addKnob(nuke.EndTabGroup_Knob())
>         self.addKnob(self.btn)
>
>
> -Nathan
>
>
>  *From:* Simon Björk <[email protected]>
> *Sent:* Monday, July 27, 2015 2:33 PM
> *To:* Nuke Python discussion <[email protected]>
> *Subject:* [Nuke-python] Add a knob below Tab_Knob (Panel)
>
>  Hi,
>
> is there a way to add a knob outside/below a Tab_Knob? In the attached
> example I would like to have the button called "button" appear below the
> tab knob. Currently it ends up in the second tab.
>
> I've searched for a way to end a tab but haven't found anything. I realise
> I could use groups, but I'm not that excited about that solution.
>
>
> class tmp_Panel(nukescripts.PythonPanel):
>
> def __init__(self):
> nukescripts.PythonPanel.__init__(self, "tmp")
>
> self.first_tab = nuke.Tab_Knob("first", "first")
> self.a = nuke.String_Knob("a", "a")
> self.second_tab = nuke.Tab_Knob("second", "second")
> self.b = nuke.String_Knob("b", "b")
>
> self.btn = nuke.PyScript_Knob("btn", "button")
>
> for i in [self.first_tab, self.a, self.second_tab, self.b, self.btn]:
> self.addKnob(i)
>
>
> p = tmp_Panel()
> p.showModalDialog()
>
>
> -------------------------------
> Simon Björk
> Compositor/TD
>
> +46 (0)70-2859503
> www.bjorkvisuals.com
>
> ------------------------------
> _______________________________________________
> 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