ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
 connectionInfo [-destinationFromSource] [-getExactDestination] [-getExactSource] [-getLockedAncestor] [-isDestination] [-isExactDestination] [-isExactSource] [-isLocked] [-isSource] [-sourceFromDestination] 
string
      
connectionInfo は、取り消し可能、照会不可能、および編集不可能です。
connectionInfo コマンドは、接続元と接続先の情報を得るために使用します。isConnected コマンドとは異なり、このコマンドでは接続一端のみが必要です。| boolean | 使用しているフラグによって、プロパティを問い合わせる場合。 | 
| string | プラグ名を問い合わせる場合。 | 
| string[] | プラグのリストを問い合わせる場合。 | 
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
| -destinationFromSource(-dfs) |  |   | ||
| 
 | ||||
| -getExactDestination(-ged) |  |   | ||
| 
 | ||||
| -getExactSource(-ges) |  |   | ||
| 
 | ||||
| -getLockedAncestor(-gla) |  |   | ||
| 
 | ||||
| -isDestination(-id) |  |   | ||
| 
 | ||||
| -isExactDestination(-ied) |  |   | ||
| 
 | ||||
| -isExactSource(-ies) |  |   | ||
| 
 | ||||
| -isLocked(-il) |  |   | ||
| 
 | ||||
| -isSource(-is) |  |   | ||
| 
 | ||||
| -sourceFromDestination(-sfd) |  |   | ||
| 
 | ||||
|  フラグはコマンドの作成モードで表示できます |  フラグはコマンドの編集モードで表示できます | 
|  フラグはコマンドの照会モードで表示できます |  コマンド内でフラグを複数回使用できます。 | 
//    Create a sphere and a cone and make the Z translation of the cone
//    be dependent on the X translation of the sphere.
//
string $cone[] = `cone`;
string $sphere[] = `sphere`;
connectAttr ($sphere[0] + ".tx") ($cone[0] + ".tz");
//    Verify the connection and print out the source plug.
//
if (`connectionInfo -isDestination ($cone[0] + ".tz")`) {
    print ("Source: "
        + `connectionInfo -sourceFromDestination ($cone[0] + ".tz")`
        + "\n");
}
//    Verify the connection and print out the destination plug.
//
if (`connectionInfo -isSource ($sphere[0] + ".tx")`) {
    string $destinations[];
    $destinations = `connectionInfo -destinationFromSource ($sphere[0] + ".tx")`;
    print ("Destination: ");
    for ($destination in $destinations) {
        print ($destination + " ");
    }
    print ("\n");
}