Go to: Synopsis. Return value. Related. Flags. MEL examples.
connectAttr [-force] [-lock boolean] [-nextAvailable] [-referenceDest string]
sourceAttribute destinationAttribute
connectAttr is undoable, queryable, and editable.
Connect the attributes of two dependency nodes and return the names of the two connected attributes. The connected attributes must be be of compatible types.(Refer to dependency node documentation.)string A phrase containing the names of the connected attributes.
In query mode, return type is based on queried flag.
| Long name (short name) | argument types | Properties | ||
|---|---|---|---|---|
-lock(-l)
|
boolean
|
|
||
|
||||
-force(-f)
|
|
|
||
|
||||
-nextAvailable(-na)
|
|
|
||
|
||||
-referenceDest(-rd)
|
string
|
|
||
|
||||
createNode transform -n firstGuy; createNode transform -n secondGuy; // Connect the translation of two nodes together connectAttr firstGuy.t secondGuy.translate; // Connect the rotation of one node to the override colour // of a second node. connectAttr firstGuy.rotate secondGuy.overrideColor;