Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 7 Next »

Description

Gets the constraint error.

This method returns the error of the given constraint at the current time as determined by the difference between the constraining node's position and its offset. Value is in millimeters.

Functional area

Data retrieval

Command syntax

Syntax

getConstraintError "SolvingConstraint or LabelingConstraint name"

Arguments

NameTypeRequiredComments
SolvingConstraint or
LabelingConstraint name
stringyesThe constraint whose error is to be retrieved.

Flags

None

Return value

float

Returns the error of the given constraint at the current time.

Examples

// Will get the constraint error for the LFHD_Head Constraint.
float $err;
$err = `getConstraintError "LFHD_Head"`;
print $err;
  • No labels