Go to: Synopsis. Return value. Related.
Flags. MEL
examples.
createNode [-name
string] [-parent string]
[-shared] [-skipSelect] string
createNode is undoable, NOT queryable, and NOT
editable.
This command creates a new node in the dependency graph of the
specified type.
string |
The name of the new node. |
connectAttr, setAttr
name, parent,
shared, skipSelect
Long name (short name) |
Argument types |
Properties |
-name(-n) |
string |
|
|
Sets the name of the newly-created node. |
|
-parent(-p) |
string |
|
|
Specifies the parent in the DAG under which the new node
belongs. |
|
-shared(-s) |
|
|
|
This node is shared across multiple files, so only create it if
it does not already exist. |
|
-skipSelect(-ss) |
|
|
|
This node is not to be selected after creation, the original
selection will be preserved. |
|
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. |
createNode "transform" -n "transform1";
createNode "nurbsSurface" -n "surface1" -p transform1;
createNode "camera" -shared -n "top";
// This transform will be selected when created
createNode "transform" -n "selectedTransform";
// This will create a new transform node, but 'selectedTransform'
// will still be selected.
createNode -ss "transform";