I've been hoping for some consistency between panels and nodes when it comes to 
accessing knobs, but for now I just got into the habit of attaching each knob 
to the panel's class:
self.nameKnob = nuke.String_Knob()...

than you can access the knob via the panel instance
p = MyPanel()
p.nameKnob.value()



On Apr 5, 2011, at 4:24 AM, Bertrand Lempereur wrote:

> 
> 
> 2011/4/4 Wouter Klouwen <[email protected]>
> On 04/04/2011 15:55, Bertrand Lempereur wrote:
> The Borg pattern works, it suppress the content of my already created
> panel and create another fresh one but the old tab still there! How can
> i delete it in the same time?
> 
> Design patterns to the rescue again. You can do this through an Observer:
> http://code.activestate.com/recipes/131499-observer-pattern/
> 
> Alternatively, with the Singleton you could hijack the original one and 
> reshow that.
> 
> I little example could realy help me a lot on that one ;o)
>  
> 
> 
> I'm also looking a way to access knobs values from panels in python?
> 
> AFAIK you should just be able to do panel.knob['foo'].
> 
> 
> Nop, sorry, i'm looking to retrieve knobs' informations from outside the 
> panel, like from a node.
> Right know, i'm sending the informations from the panel callback to a Root() 
> hidden corresponding knob so i can retrieve it from everywhere. i'm just 
> wondering if there is a easyer solution.
>  
> 
> HTH
> -- 
> Wouter Klouwen, Software Engineer
> The Foundry, 6th Floor, The Communications Building,
> 48 Leicester Square, London, WC2H 7LT, UK
> T: +442079686828 - F: +442074341550 - thefoundry.co.uk
> The Foundry Visionmongers Ltd - Reg.d in England and Wales No: 4642027
> _______________________________________________
> Nuke-python mailing list
> [email protected]
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> _______________________________________________
> Nuke-python mailing list
> [email protected]
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to