YES!
Thanks Hugo.

Ron Ganbar
email: ron...@gmail.com
tel: +44 (0)7968 007 309 [UK]
     +972 (0)54 255 9765 [Israel]
url: http://ronganbar.wordpress.com/



On 15 September 2011 17:03, Hugo Léveillé <hu...@fastmail.net> wrote:

>  this ??
>
>  b = nuke.createNode("Blur")
>
> b['knobChanged'].setValue('''
> k = nuke.thisKnob()
> if k.name() == "size":
>  nuke.message("%s" % nuke.thisNode()["size"].value())'''
>  )
>
>
>   On Thursday, September 15, 2011 4:32 PM, "Ron Ganbar" <ron...@gmail.com>
> wrote:
>
>  Hi David,
>  I know about the kind of callback you are talking about, however there's
> also a callback you can attach to a specific node's specific knob. If
> anybody can help there, I would appreciate.
>
>
> Ron Ganbar
> email: ron...@gmail.com
> tel: +44 (0)7968 007 309 [UK]
>      +972 (0)54 255 9765 [Israel]
> url: http://ronganbar.wordpress.com/
>
>
>
>  On 15 September 2011 17:50, David Harter <davidhar...@gmx.de> wrote:
>
>  i think this is how it works:
>
>  you add the 'knobChangedCallback'  in your menu.py, which is called
> whenever a knob is changed and which then calls the function that you define
> under the parameter 'call' . as you only want this function to be called,
> when a specific knob of a specific nodeclass has been changed, you have to
> find out which knob of which nodeclass actually has changed. for that you
> can use nuke.thisNode() and/or nuke.thisKnob()
>
>  hope, that helps
>  good luck,
>
>  David
>
>  p.s.:
>
>  here is an excerpt from the NUKE Python API:
>
>      addKnobChanged(call, args=(), kwargs={}, nodeClass='*', node=None)
> source code
> Add code to execute when the user changes a knob The knob is availble in
> nuke.thisKnob() and the node in nuke.thisNode(). This is also called with
> dummy knobs when the control panel is opened or when the inputs to the node
> changes. The purpose is to update other knobs in the control panel. Use
> addUpdateUI() for changes that should happen even when the panel is closed.
>
>
>  Am 15.09.2011 um 10:25 schrieb Ron Ganbar:
>
>
>   Hi there,
>  Can anybody direct me as to how to add a callback on a specific knob in a
> specific node? Something that's tied to that knob only - not part of the
> menu.py.
>  Can that only be done via scripting?
>  Thanks,
> Ron Ganbar
> email: ron...@gmail.com
> tel: +44 (0)7968 007 309 [UK]
>      +972 (0)54 255 9765 [Israel]
> url: http://ronganbar.wordpress.com/
>   _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
>
> _______________________________________________
> Nuke-users mailing listnuke-us...@support.thefoundry.co.uk, 
> http://forums.thefoundry.co.uk/http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
> that
>
>
>  --
>  Hugo Léveillé
>  TD Compositing, Vision Globale
>  hu...@fastmail.net
>
> _______________________________________________
> Nuke-users mailing list
> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
>
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to