Go to:
Return value. Related commands. Flags. Examples.
Synopsis
isConnected "srcPlug" "dstPlug"
The isConnected command is used to check if two plugs are
connected in the dependency graph. The return value is false
if they are not and true if they are.
Return value
boolean : Are the two plugs connected?
Related commands
connectionInfo, listConnections, connectAttrFlags
iuc
Long name (short name) | [argument types] | Properties |
---|
-iuc
(-ignoreUnitConversion)
|
|  |
|
In looking for connections, skip past unit conversion nodes.
"srcPlug"
Specifies the source plug to check for connection.
"dstPlug"
Specifies the destination plug to check for connection.
|
|
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 jupiter;
sphere -n io;
connectAttr jupiter.ty io.ty;
// Are the two "tx" attributes on transform1 and transform2 connected?
isConnected jupiter.tx io.tx;
// Result: 0 //
// Are the two "ty" attributes on transform1 and transform2 connected?
isConnected jupiter.ty io.ty;
// Result: 1 //