ジャンプ先: 概要. 戻り値. 関連項目. フラグ. MEL 例.
connectionInfo [-destinationFromSource] [-getExactDestination] [-getExactSource] [-getLockedAncestor] [-isDestination] [-isExactDestination] [-isExactSource] [-isLocked] [-isSource] [-sourceFromDestination]
string
connectionInfo は 「元に戻す」が可能、「照会」が不可能、「編集」が不可能 です。
connectionInfo コマンドは、コネクション元とコネクション先の情報を得るために使用します。isConnected コマンドとは異なり、このコマンドではコネクション一端のみが必要です。| boolean | 使用しているフラグによって、プロパティを問い合わせる場合。 |
| string | プラグ名を問い合わせる場合。 |
| string[] | プラグのリストを問い合わせる場合。 |
| ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
|---|---|---|---|---|
-isSource(-is) |
||||
|
||||
-isDestination(-id) |
||||
|
||||
-isExactSource(-ies) |
||||
|
||||
-isExactDestination(-ied) |
||||
|
||||
-getExactSource(-ges) |
||||
|
||||
-getExactDestination(-ged) |
||||
|
||||
-destinationFromSource(-dfs) |
||||
|
||||
-sourceFromDestination(-sfd) |
||||
|
||||
-isLocked(-il) |
||||
|
||||
-getLockedAncestor(-gla) |
||||
|
||||
// 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");
}