Go to: Synopsis. Return value. Related. Flags. MEL examples.
nodeType [-apiType] [-inherited]
string
nodeType is undoable, NOT queryable, and NOT editable.
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.
When the inherited flag is used, the command returns a string array containing the names of each of the base node types inherited by the given object. The inherited flag cannot be used in conjunction with the api flag.
string | |
string[] |
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-apiType(-api)
|
|
![]() |
||
|
||||
-inherited(-i)
|
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
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"