|
Finally got around to doing something about this again: While it doesn't directly address the removeKnob bug erroneously populating the panels (bug 37959, which is still broken in nuke8), it does a better job of closing and re-opening the panels (bug 14622) to restore the panel to the correct state. Both techniques mentioned earlier fell apart in various tests, so we've just been putting up with it till now. Here's the fix (adapted from an old tip for something completely different by erik winquist): [code] import thread def _showPanel(node): nuke.executeInMainThread(node.showControlPanel, ()) def fixRemoveKnobs(node): """Place after node.removeKnob code to hide and then re-show panel to fix nuke 7 bug that duplicates panels inside panels.""" node.hideControlPanel() thread.start_new_thread(_showPanel, (node,)) [/code] cheers JRAB On 09/20/2013 12:00 AM, John Vanderbeck wrote:
|
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
