/
snapTo
snapTo
Description
Snaps the primary node to the average (translation and rotation) of the other selected nodes.
Use snapTo when you need to position or orient an object based on the position and/or rotation of one or more other objects, whether at a single frame in the timeline, over a specific subset of the timeline, or over the entire animation range.
Functional area
Snap
Command syntax
Syntax
snapTo [-allTime] [-ranges] [-positionOnly] [-rotationOnly] [-system] |
Arguments
None
Flags
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
all time | 0 | — | ranges | Performs the snap over the entire animation range. |
ranges | 0 | — | allTime | Performs the snap over all selected time ranges. |
positionOnly | 0 | — | rotationOnly | Only modifies the translation of the primary node. |
rotationOnly | 0 | — | positionOnly | Only modifies the rotation of the primary node. |
system | 0 | — | positionOnly | Works similarly to snapToSystem command, but it doesn't position the markers according to the system, it only orients them to it. (Must be at least 4 markers selected for this option). |
Return value
void
Examples
// This sequence of commands creates a marker called "rootTemp" // and snap its position over all time to the average of the four // indicated waist markers. create Marker rootTemp; select LFWT LBWT RFWT RBWT rootTemp; snapTo -allTime;
Additional information
Related commands
, multiple selections available,