A few shots in the dark: - Do you have any custom autolabel callbacks installed? I wouldn’t expect this to be able to cause a problem due to interpreter locking, but you never know... Even if not, maybe try popping the default autolabel callback out of the registry while your cleanup code runs, and then re-inserting it afterward. - Try replacing your `with nuke.root()` block with just`nuke.allNodes(group=nuke.root())`. - Skip setting `note_font`
-Nathan From: Dennis Serras Sent: Thursday, August 22, 2013 1:39 PM To: Nuke Python discussion Subject: RE: [Nuke-python] Mysterious Nuke Crash when cleaning up the DAG The problem is that I haven’t even found a pattern that determines whether it’ll crash or not. It seems like the more work you’ve done to a shot, the more likely it is to crash… Makes it hard to experiment. That’s why I’m hoping somebody in the ether has an idea of where to start… den serras @ stereoD From: nuke-python-boun...@support.thefoundry.co.uk [mailto:nuke-python-boun...@support.thefoundry.co.uk] On Behalf Of Elias Ericsson Rydberg Sent: Thursday, August 22, 2013 1:04 PM To: Nuke Python discussion Subject: Re: [Nuke-python] Mysterious Nuke Crash when cleaning up the DAG Hi Dennis, Have tried excluding parts of the code to find what part is causing trouble? Is it changing font or size or maybe changing stickys and backdrops with Verdana 11 to Verdana 11? Cheers, Elias 22 aug 2013 kl. 19:59 skrev Dennis Serras <dennis.ser...@bydeluxe.com>: Hey all, I have a script that cleans up the DAG to remove extra notes, backdrops, etc. But it sometimes crashes Nuke, and I can’t find a pattern. If anyone might know why… Here’s the script: def cleanupDAG(): if nuke.ask("This tool sometimes crashes, please save first. If you can find the crash pattern, please let Dennis know"): if not nuke.selectedNodes(): with nuke.root(): nodes = nuke.allNodes() else: nodes = nuke.selectedNodes() for node in nodes: print node.name() if node.Class() in ['BackdropNode','StickyNote']: nuke.delete(node) else: node['tile_color'].setValue(0) node['note_font_size'].setValue(11) label = node['label'].getValue() if "ing_" in label or "plates_" in label: print "-leave this node label" else: node['label'].setValue("") try: node['note_font'].setValue("Verdana") except: pass den serras @ senior technical artist | stereo D | deluxe 3D 3355 empire ave burbank, ca 91504 | o 818.861.3100 | m 323.356.0345 eon free zone, pune, india | o +91.020.46.60.09.99 This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email and any attachments is strictly prohibited. If you receive this email in error, please immediately notify the sender by return email and permanently delete the original, any copy and any printout thereof. The integrity and security of e-mail cannot be guaranteed. _______________________________________________ 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 This e-mail and any attachments are intended only for use by the addressee(s) named herein and may contain confidential information. If you are not the intended recipient of this e-mail, you are hereby notified any dissemination, distribution or copying of this email and any attachments is strictly prohibited. If you receive this email in error, please immediately notify the sender by return email and permanently delete the original, any copy and any printout thereof. The integrity and security of e-mail cannot be guaranteed. -------------------------------------------------------------------------------- _______________________________________________ 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