The specific issue is when setLabel is called from a knobChanged call that
itself is called as the result of another knobChanged call (hence the
setting and clearing of nuke.KNOB_CHANGED_RECURSIVE).
The sequence that breaks is:
- Knob A changed
- [knobChanged A] Set KNOB_CHANGED_RECURSIVE on knob B
- [knobChanged A] Change knob B's value
- [knobChanged B]: Change knob C's label
- [knobChanged A]: Clear KNOB_CHANGED_RECURSIVE on knob B
If this sequence is run more than once in the same panel, Nuke crashes prior
to 7.0.
-Nathan
-----Original Message-----
From: Peter Pearson
Sent: Tuesday, November 27, 2012 12:36 AM
To: nuke-python@support.thefoundry.co.uk
Subject: Re: [Nuke-python] Re: knob.setLabel() doesn't
updateuntilpropertiespanel is re-op
On 21/11/12 13:40, Marc Gutowski wrote:
hey fellows,
i got a simple problem and dont't know how to solve...
just created a new panel with updating labels,
using the setflag/clearflag trick.
In 6.3v7 and above, just calling setLabel() should work...
Regards,
Peter
--
Peter Pearson, Software Engineer
The Foundry, 6th Floor, The Communications Building,
48 Leicester Square, London, UK, WC2H 7LT
Tel: +44 (0)20 7434 0449 Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
_______________________________________________
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