It's probably changing the font size or face:

Bug 33514 - segfaults when setting the note_font or note_font_size from a menu action


Repro steps I sent was this:

def setCommentFormatting():
     selectedNode = nuke.selectedNode()
     selectedNode['note_font_size'].fromScript("12")
     selectedNode['note_font'].fromScript("Nimbus Sans L Bold")

nodeToolbar = nuke.menu('Nodes')
testMenu = nodeToolbar.addMenu('Test')
testMenu.addCommand('Set comment formatting', setCommentFormatting, 'a')

Create about 4 or 5 nodes (e.g Blur), then select one of them, press "a" and repeat for the other nodes. Usually by the 3rd or 4th node, Nuke will segfault

On 23/08/13 05:34, Elias Ericsson Rydberg wrote:
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 <[email protected]
<mailto:[email protected]>>:

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*():

ifnuke.ask(/"This tool sometimes crashes, please save first. If you
can find the crash pattern, please let Dennis know"/):

ifnotnuke.selectedNodes():

withnuke.root():

nodes = nuke.allNodes()

else:

nodes = nuke.selectedNodes()

fornode innodes:

printnode.name()

ifnode.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_"/inlabel or/"plates_"/inlabel:

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
[email protected]
<mailto:[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

--
ben dickson
2D TD | [email protected]
rising sun pictures | www.rsp.com.au
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to