Go to:
Return value. Related commands. Flags. Examples.
Synopsis
string nodeType string
This command returns a string which identifies the given node's type.
When no flags are used, the unique type name is returned. This can be
useful for seeing if two nodes are of the same type.
When the -api flag is used, the MFn::Type of the node is returned.
This can be useful for seeing if a plug-in node belongs to a given
class.
Return value
string
Related commands
addAttr, aliasAttr, deleteAttr, getClassification, objExists, attributeInfo, objectType, renameAttrFlags
apiType
Long name (short name) | [argument types] | Properties |
---|
-apiType
(-api)
|
|  |
|
Return the MFn::Type value (as a string) corresponding
to the given node. This is particularly useful when
the given node is defined by a plug-in, since in this
case, the MFn::Type value corresponds to the
underlying proxy class.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command
|
Examples
sphere -n balloon;
// Find the type of node created by the sphere command
string $id = `nodeType balloon`;
// Suppose fooType is an object set node type defined by a plug-in.
createNode fooType -n foo;
nodeType -api foo; // ==> "kPluginObjectSet"