/
getConstraintPos
getConstraintPos
Description
Gets the constraint offset in world space. This command gets the world space value that represents where the constraints target would be if the solve had no error.
Functional area
Data retrieval
Command syntax
Syntax
getConstraintPos "SolvingConstraint or LabelingConstraint name" |
Arguments
Name | Type | Required | Comments |
---|---|---|---|
SolvingConstraint or LabelingConstraint name | string | yes | Name of the constraint to operate on |
Flags
None
Return value
vector
Returns a vector consisting of the world space value of the constraint offset.
Examples
// Get the world space position of the Constraint offset for constraint LFHD_head vector $targetPos = getConstraintPos( "LFHD_head" ); print $targetPos;
Additional information
Related commands
, multiple selections available,