/
compareModules

compareModules

Description

Enables attribute comparison of two modules of the same type (bones, constraints, markers).

Differences are reported in the log with minimal detail.

Functional area

Testing

Command syntax

Syntax

compareModules "module1" "module2"[-ignoreModuleAttributes];

Arguments

NameTypeRequiredComments
modulesstringtrueThe names of the modules to compare.

Flags

NameFlag argumentsArgument typeComments
ignoreModuleAttributes0An attribute in Shogun Post that points to a module in the scene. The ignoreModuleAttributes flag can be used to skip comparing attributes where comparison is likely to fail due to the attributes pointed to by two modules not being the exact same module, even if their name differs. For example, for QA purposes, you might want to write a script to compare the hierarchy of an actor to a copy of itself.

Character names must differ, so you could just skip checking the character node, but just about all modules parented to each character and their names will be the same between the two copies. So, you could write a script that iterates over all the pairs of modules and calls compareModules.

If you're checking, say, a constraint, the source attribute will point to a marker. While that will be a marker of the same name in both copies, it won't be exactly the same marker, so the comparison will fail unless -ignoreModuleAttributes is used.

Return value

string

Examples

compareModules "RightUpLeg" "LeftUpLeg";

When the above is entered into the Script Editor and the script is run, the Log displays the following:

ERROR: Attribute Name on RightUpLeg does not have the same data as attribute Name on LeftUpLeg. 
ERROR: Attribute Pre_Translation on RightUpLeg does not have the same data as attribute Pre_Translation on LeftUpLeg. 
ERROR: Attribute Joint_Range on RightUpLeg does not have the same data as attribute Joint_Range on LeftUpLeg. 
ERROR: Attribute Joint_Covariance_Matrix on RightUpLeg does not have the same data as attribute Joint_Covariance_Matrix on LeftUpLeg. 
ERROR: Attribute Parameter_PositionX on RightUpLeg does not have the same data as attribute Parameter_PositionX on LeftUpLeg. 
ERROR: Attribute Preferred_Pose on RightUpLeg does not have the same data as attribute Preferred_Pose on LeftUpLeg.

Related content


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks