Query the type of a node

When referring to the Nodes documentation in the Technical Documentation section, you must know the type of the node. It can be found towards the top of the Attribute Editor, beside the node name.

Alternatively, you can also use the nodeType command; for example, as follows:

nodeType nClothShape1;
// Result: nCloth // 

In addition, the nodeType command also provides flags that enable you to obtain additional information, such as the API type of a node, or the types of nodes that derive from the node type that you are querying.