Nuke node type

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!"

Leave a Reply

Your email address will not be published. Required fields are marked *