Reports the node type of a selected node
namedNode = nuke.selectedNode().name() print namedNode thisNode = nuke.selectedNode().Class() print thisNode nodeType = type(nuke.selectedNode()) print nodeType if nodeType == nuke.Gizmo: print "Yay, gizmo!"
Reports the node type of a selected node
namedNode = nuke.selectedNode().name() print namedNode thisNode = nuke.selectedNode().Class() print thisNode nodeType = type(nuke.selectedNode()) print nodeType if nodeType == nuke.Gizmo: print "Yay, gizmo!"