/
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

NameFlag argumentsArgument typeExclusive toComments
all time0rangesPerforms the snap over the entire animation range.
ranges0allTimePerforms the snap over all selected time ranges.
positionOnly0rotationOnlyOnly modifies the translation of the primary node.
rotationOnly0positionOnlyOnly modifies the rotation of the primary node.
system0positionOnlyWorks 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



© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks