Which version of Nuke are you running?

On 22 April 2015 at 23:53, Francois Lord <li...@francoislord.com> wrote:

> 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
>



-- 
Frank Harrison
Senior Nuke Software Engineer
The Foundry
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: frank.harri...@thefoundry.co.uk
_______________________________________________
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