/
getConstraintOffset

getConstraintOffset

Description

The getConstraintOffset command gets the local constraint offset for the specified node. Used often during fine-tuning the setup of a skeleton to adjust the relationship between markers and bones.

Functional area

Data retrieval

Command syntax

Syntax

getConstraintOffset "constraintName"[-ws]

Arguments

NameTypeRequiredComments
constraintNamestringyesThe name of the constraint whose offset is requested

Flags

NameFlag argumentsArgument typeExclusive toComments
ws0Return the world space offset instead of the local space offset.

Return value

vector

Examples

// Get the world space position of the Constraint offset for the 
// constraint LFHD_Head and print to the log. 
vector $targetPos = `getConstraintOffset "LFHD_Head" -ws`; 
print $targetPos;

Additional information

Related commands