createNode then deleteNode
Posted in: NUKE from The FoundryAny thoughts?
FYI: This is a small part of a much bigger script so if it seems pointless, that’s why
def warningPrompt():
p = nuke.Panel("Warning")
p.addMultilineTextInput('warning', "This can take several minutes. It is strongly recomended that you start from an empty nuke scrpit.")
p.addButton("Cancel")
p.addButton("Continue")
if p.show():
print 'ok'
MyFBX = nuke.getFilename( 'select your FBX' , '*.fbx' )
######## The problem Starts Here ########
nuke.createNode('ReadGeo2', 'file %s' % MyFBX)
getRange = (nuke.toNode('ReadGeo1').knob('fbx_node_name').numValues()+1)
nukescripts.node_delete()
print getRange
warningPrompt()
Post a Comment