Got it: nuke.thisParent() from inside the callback.
This thing about linked knobs not triggering KnobChanged() callbacks is
really annoying, though.
On 22-Apr-15 16:01, Francois Lord wrote:
Hi.
I'm doing a custom read node with proper colorspace controls. One
problem I have, is that I can't make KnobChanged() callbacks work for
knobs that are linked inside the gizmo. It works for knobs that were
created at the gizmo level (Add button in the Manage User Knobs window),
but doesn't work for linked knobs (Pick... button in the Manage user
knobs window).
For example, in my gizmo I have linked the "file" knob of a Read node.
Whenever the file knob gets changed, I want to do some stuff on other
nodes. In order to trigger the KnobChanged callback on the file knob, I
have to add it to the Read node because on the gizmo it doesn't do
anything. But then the callback is run from the Read node. How do I
reliably get to the other nodes in the gizmo from there to do my stuff?
Thanks.
Francois
_______________________________________________
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