If you mean a C++ equivalent of nuke.callbacks.addKnobChanged, I don't
think it exists - best way would be to wrap your code in a simple Python
module and register it that way, i.e
import wrapperformycppcode
nuke.addKnobChanged(wrapperformycppcode.myfunc)
On 12/12/14 13:58, Colin Doncaster wrote:
> Do you mean when a knob changes?
>
> int myNode::knob_changed(Knob* k)
> {
> if (k != NULL)
> {
> if (strcmp(k->name_c_str(), “dazzleMe") == 0)
> {
> // be dazzled
> return 1; // if you accept the event and don’t want to
> propagate it down the event chain
> }
> }
>
> return Iop::knob_changed(k);
> }
>
>
>
>
>> On Dec 11, 2014, at 9:50 PM, 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
>
> _______________________________________________
> Nuke-dev mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-dev mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev