The KNOB_CHANGED_RECURSIVE flag won't help there, because you don't want to
trigger other callbacks recursively, but just the one that should run when
the 'transform' knob changes.
The only reason it wouldn't be triggered (I think) is if the properties
panel is not open when you change the value of the 'transform' knob.
Try doing something like this and see if that helps:
n =nuke.nodePaste('%clipboard%')
n.showControlPanel()
n['transform'].setValue('match-move')
Cheers,
Ivan
On Wed, Feb 1, 2012 at 10:54 AM, Brogan Ross <[email protected]> wrote:
> Yeah, tried that one to no avail. :(
>
>
>
>
> On Wed, Feb 1, 2012 at 9:29 AM, Nathan Rusch <[email protected]>wrote:
>
>> Haven’t tested it in this specific case, but try setting the
>> KNOB_CHANGED_RECURSIVE flag on the "transform" knob, changing the value,
>> and then unsetting it.
>>
>> -Nathan
>>
>>
>> *From:* Brogan Ross <[email protected]>
>> *Sent:* Tuesday, January 31, 2012 9:46 PM
>> *To:* Nuke Python discussion <[email protected]>
>> *Subject:* [Nuke-python] Tracker transform knob callback?
>>
>> Does anyone know the callback that Tracker3.knob("transform") runs when
>> the knob is changed from "stabilize" to "match-move"? I've run into one of
>> those classic cases of: I'm changing a knob with python and it's not
>> triggering the knobChanged(). Basically, I'm nodeCopying a Tracker3,
>> nodePasting it, and changing the transform knob from stabilize to
>> match-move, but obviously the values aren't updating.
>> So, yeah does anyone know if the function for that swap is available, or
>> am I going to have to try and recreate it?
>>
>>
>>
>> Thanks,
>> Brogan
>>
>> ------------------------------
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
>
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python