On Oct 13, 2014, at 9:44 PM, Nathan Rusch <nathan_ru...@hotmail.com> wrote:

> John: Yeah, that's pretty much it. The knob triggers a re-draw of its widget 
> when setFlag is called; the tab switching may actually be a Qt UI setting of 
> some kind.
>  
> Richard: .setFlag with any value will work, but when you call .setFlag(True), 
> you're actually calling .setFlag(1) due to implicit type conversion. Knob 
> flags are stored as a bitmask (imagine a binary number like 01110010110 where 
> each digit controls the state of a flag), and some knob types actually use 
> the first bit to store a flag, so you should stick to 0 for changing the 
> active tab.

Got it, thanks. I’ll change it back to zero.

Rich

>  
> -Nathan
> 
>  
> From: John Vanderbeck
> Sent: Monday, October 13, 2014 6:29 PM
> To: Nuke Python discussion
> Subject: Re: [Nuke-python] Cross-Post: Any Pythonic way to select a 
> node'staband make it active?
>  
> 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
>> Sent: Friday, October 10, 2014 1:24 PM
>> To: Nuke Python discussion ; Nuke-Users Mailing List
>> 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
> _______________________________________________
> 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

Reply via email to