nuke.getNodeClassName

nuke.getNodeClassName() → None

gets the class name for the currently selected node :return: a string containing the name.