Hey! Thanks so much for your help!
I am aware of the knob_changed function... and the python one. What i need
is a callback when the NAME of the node changes.
simple example... user creates node(blur for ex) renames "Blur1" to "dazzleMe"
i get a callback and can act on the fact that the node name was changed....
the node will be MY own node so i have full access to it.

Any further ideas? AFAIK the name of the node is not a knob ( shame really
) but you can use node_name() but even that somehow causes my node to crash.
Whats the best way of handling the node name and its changes?

Rock on
jo

On Fri, Dec 12, 2014 at 12:44 AM, Frank Harrison <[email protected]>
wrote:

> Have a look at DDImage::Knob::addCallback(); you probably want to use
> the kChanged CallbackReason
>
>
> http://docs.thefoundry.co.uk/nuke/90/ndkreference/Plugins/classDD_1_1Image_1_1Knob.html#a03fea4c7207d01e91eb22c7a9c6c896d
>
> Make sure you call removeCallback() when appropriate.
>
> Hope that helps.
>
> F.
>
> On 12 December 2014 at 02:50, Johannes Saam <[email protected]>
> wrote:
>>
>> Does it exist? Or whats the most elegant way?
>> Jo
>>
>> _______________________________________________
>> Nuke-dev mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>>
>>
>
> --
> 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: [email protected]
>
> _______________________________________________
> Nuke-dev mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
>
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to