/
snapToConstraint

snapToConstraint

Description

Sets the location of the selected markers to the offset of their constraint based on the current pose of the skeleton. Useful during skeleton setup, when manually creating a VST, and as a method of filling gaps. Note that fillGaps -constraints may be more appropriate for gap filling. If no flags are used, the marker(s) only snap into place for the current frame.

Functional area

Snap

Command syntax

Syntax

snapToConstraint [-ranges] [-allTime] [-defaultValue] -[solvingOnly] [-labelingOnly]

Arguments

None

Flags

Name Flag arguments Argument type Exclusive to Comments
ranges 0 allTime, defaultValue Snaps the marker(s) only over the selected ranges
all time 0 ranges, defaultValue Snaps the marker(s) over all time
defaultValue 0 ranges, allTime Snaps the marker(s) at the current frame and only modifies their default values.
solvingOnly



labelingOnly



Return value

void

Examples

// Select a marker that is the source of a constraint. Move the marker
// away from its constraint offset location. Execute snapToConstraint
// to move it back to its constraint offset location.
snapToConstraint;

Additional information

Related commands