Nuke's UI is pretty basic. Most likely any modification of the flag is causing Nuke to refresh that knob and thus causes it to swap to that tab in the UI. That is just a guess though.
- John Vanderbeck - http://www.johnvanderbeck.com On Mon, Oct 13, 2014 at 6:25 PM, Richard Bobo <richb...@mac.com> wrote: > Thanks, Nathan. I got the same answer from my cross-post over on > nuke-users. Also, I discovered that .setFlag(True) appears to do the same > thing - i.e., makes the tab active. Maybe any True expression works? I > tried other integers besides zero and they work, too… > > Rich > > > On Oct 13, 2014, at 9:17 PM, Nathan Rusch <nathan_ru...@hotmail.com> > wrote: > > `knob.setFlag(0)` on the tab knob should do it. If not, set it on one > of the knobs in the tab. > > -Nathan > > > *From:* Richard Bobo <richb...@mac.com> > *Sent:* Friday, October 10, 2014 1:24 PM > *To:* Nuke Python discussion <nuke-python@support.thefoundry.co.uk> ; > Nuke-Users > Mailing List <nuke-us...@support.thefoundry.co.uk> > *Subject:* [Nuke-python] Cross-Post: Any Pythonic way to select a node's > taband make it active? > > Hi, > > Sorry for the cross-post, but I am hoping to find someone who might have > the definitive answer for this… > > Is there a way in Python to select/make active/make current a particular > tab on a node…? When I create a new node with a custom tab on it, then show > the panel, I want the custom tab to be the one that is currently selected. > If I get the Tab_Knob object I created and look through the available > methods, I can’t seem to find one that will do it. None of the Flags seem > to be what I’m looking for. I know this question has been asked before (by > me and a few others)… Is there no way to do it? > > Thanks! > Rich > > > Rich Bobo > Senior VFX Compositor > Armstrong White > Email: rich.b...@armstrong-white.com > http://armstrong-white.com/ > > Email: richb...@mac.com > Mobile: (248) 840-2665 > Web: http://richbobo.com/ > > "First say to yourself what you would be; and then do what you have to do." > - Epictetus (55-135 AD) Roman Philosopher > > > > > > > ------------------------------ > _______________________________________________ > 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 > _______________________________________________ > 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 > > > > _______________________________________________ > 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 > >
_______________________________________________ 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