/
getRotation

getRotation

Description

Retrieves the local or world-space rotation of a node at the current time.

Functional area

Data retrieval

Command syntax

Syntax

getRotation "moduleName"[-ws] [-inSpaceOf string] [-preRot] [-def]

Arguments

NameTypeRequiredComments
moduleNamestringyesThe module to get rotation for.

Flags

NameFlag argumentsArgument typeExclusive toComments
ws0inSpaceOfSpecifies that the worldspace value should be retrieved. The default is to retrieve local.
inSpaceOf1stringws
preRot0def
def0preRot

Return value

vector

Examples

// Get the local and world space rotation of the rhumerus bone.
vector $localRot;
vector $wsRot;
 
// First the local 
$localRot = `getRotation "rhumerus"`;
 
// And then the world space
$wsRot = `getRotation "rhumerus" -ws`;
print $localRot;
print $wsRot;

Additional information

Related commands

Related content


© Copyright Vicon Motion Systems. All rights reserved.

Vicon trademarks