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

Synopsis

transformCompare [-root] [dagObject dagObject]

transformCompare is undoable, NOT queryable, and NOT editable.

Compares two transforms passed as arguments. If they are the same, returns 0. If they are different, returns 1. If no transforms are specified in the command line, then the transforms from the active list are used.

Return value

int0 if successful, 1 if transform1 and transform2 are not determined to be equal.

Flags

root
Long name (short name) Argument types Properties
-root(-r) create
Compare the root only, rather than the entire hierarchy below the roots.

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

// Create some joints
//
select -d;
joint -p -3.226531 0 -4.866136 ;
joint -p 2.817897 0 -4.016915 ;
joint -e -zso -oj xyz -sao yup joint1;

// Compare 2 different joints, a 1 will be returned
//
select -r joint1 joint2;
transformCompare;

// Duplicate joint1 and compare the duplicate
//
select -r joint1;
duplicate;
select -cl  ;
select -r joint1 joint3 ;
transformCompare;