pymel.core.general.connectionInfo

connectionInfo(*args, **kwargs)

The connectionInfocommand is used to get information about connection sources and destinations. Unlike the isConnected command, this command needs only one end of the connection.

Flags:
  • destinationFromSource : dfs (bool) [create]

    If the specified plug (or its ancestor) is a source, this flag returns the list of destinations connected from the source. (array of strings, empty array if none)

  • getExactDestination : ged (bool) [create]

    If the plug or its ancestor is connection destination, this returns the name of the plug that is the exact destination. (empty string if there is no such connection).

  • getExactSource : ges (bool) [create]

    If the plug or its ancestor is a connection source, this returns the name of the plug that is the exact source. (empty string if there is no such connection).

  • getLockedAncestor : gla (bool) [create]

    If the specified plug is locked, its name is returned. If an ancestor of the plug is locked, its name is returned. If more than one ancestor is locked, only the name of the closest one is returned. If neither this plug nor any ancestors are locked, an empty string is returned. Flag can have multiple arguments, passed either as a tuple or a list.

  • isDestination : id (bool) [create]

    Returns true if the plug (or its ancestor) is the destination of a connection, false otherwise.

  • isExactDestination : ied (bool) [create]

    Returns true if the plug is the exact destination of a connection, false otherwise.

  • isExactSource : ies (bool) [create]

    Returns true if the plug is the exact source of a connection, false otherwise.

  • isLocked : il (bool) [create]

    Returns true if this plug (or its ancestor) is locked

  • isSource : isSource (bool) [create]

    Returns true if the plug (or its ancestor) is the source of a connection, false otherwise.

  • sourceFromDestination : sfd (bool) [create]

    If the specified plug (or its ancestor) is a destination, this flag returns the source of the connection. (string, empty if none)

Derived from mel command maya.cmds.connectionInfo

Previous topic

pymel.core.general.connectAttr

Next topic

pymel.core.general.container

Core

Core Modules

Other Modules

This Page