Go to: Return value. Related commands. Flags. Examples.
destinationFromSource, getExactDestination, getExactSource, getLockedAncestor, isDestination, isExactDestination, isExactSource, isLocked, isSource, sourceFromDestination
![]() | ![]() |
![]() | ![]() |
// 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"); }