nuke.addOnDestroy

nuke.addOnDestroy(call, args=(), kwargs={}, nodeClass='*')[source]

Add code to execute when a node is destroyed