Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

isConnected [-ignoreUnitConversion] string string

isConnected is undoable, NOT queryable, and NOT editable.

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.


The first string specifies the source plug to check for connection.
The second one specifies the destination plug to check for connection.

Return value

booleanAre the two plugs connected?

Related

connectAttr, connectionInfo, listConnections

Flags

ignoreUnitConversion
Long name (short name) Argument types Properties
-ignoreUnitConversion(-iuc) create
In looking for connections, skip past unit conversion nodes.

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.

MEL 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 //