State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Won't Fix|BugID:267419|
def helloWorld(): print "before" try: with nuke.thisNode(): print "middle" except: pass print "after"nuke.addOnCreate(helloWorld)
9) Copy and paste the node tree again, the Gizmo node will no longer have it's input connection
def helloWorld(): print "before" try: nuke.thisNode().begin() print "middle" nuke.thisNode().end() except: pass print "after"nuke.addOnCreate(helloWorld)
def myGizmoOnCreate(): print("in the context of the gizmo") for n in nuke.allNodes(): print(n.name())myGizmoClassName = "empty"def onCreateCallback(): n = nuke.thisNode() if n and n.Class() == myGizmoClassName: n.run(myGizmoOnCreate)nuke.addOnCreate(onCreateCallback) We're sorry to hear that
Please tell us why