I am trying to do this in C++ (NDK).
Isn't onCreate() python only ?

I tried doing something like this in various places (knobs(), _validate(),
_request()..
But doesn't seem to work

    if (knob("inputChange"))
        knob("inputChange")->set_flag(DD::Image::Knob::KNOB_CHANGED_ALWAYS);


On Mon, Jun 22, 2015 at 4:13 AM, Frank Harrison <fr...@thefoundry.co.uk>
wrote:

>
> On 20 June 2015 at 01:25, devMannemela <devm...@gmail.com> wrote:
>
>> But can this flag be set for "inputChange" knob ?
>> if so, where ?
>
>
> You should always get the changed in python, but you won't in C++ without
> the flag.
>
> Once the Node has been created you should be able to get the knob and set
> any arbitrary flag on it. You might *possibly* be able to do this in your
> knobs() function when in knob-creation mode - although it may be better to
> do it in the onCreate callback or some similar place when all knobs have
> been created.
>
> hth
>
> F.
> --
> 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-dev mailing list
> Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
>
>
_______________________________________________
Nuke-dev mailing list
Nuke-dev@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev

Reply via email to