nuke.canCreateNode

nuke.canCreateNode(name) → True if the node can be created, or False if not.

This function can be used to determine whether it is possible to create a node with the specified node class. :param name: Node name. :return: True if the node can be created, or False if not.