Go to:
Return value. Related commands. Flags. Examples.
Synopsis
disconnectAttr sourceAttribute destinationAttribute
Disconnects two connected attributes.
Return value
string:
A phrase containing the names of the disconnected attributes.
Related commands
addAttr, getAttr, setAttr, connectAttr, listAttrFlags
nextAvailable
Long name (short name) | [argument types] | Properties |
---|
-nextAvailable
(-na)
|
|  |
|
If the destination multi-attribute has set the indexMatters
to be false, the command will disconnect the first matching
connection. No index needs to be specified.
|
|
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
// Create a sphere and cone and connect their rotate attribute.
//
string $sph[] = `sphere`;
string $con[] = `cone`;
connectAttr ($sph[0] + ".r") ($con[0] + ".r");
// Break the connection between the rotate attributes.
//
disconnectAttr ($sph[0] + ".r") ($con[0] + ".r");