/
getScale

getScale

Description

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

Functional area

Data retrieval

Command syntax

Syntax

getScale "moduleName"[-ws] [-inSpaceOf string] [-def]

Arguments

Name Type Required Comments
nodeName string yes The node to get scale for.

Flags

Name Flag arguments Argument type Exclusive to Comments
ws 0 Specifies that the worldspace value should be retrieved. The default is to retrieve local.
inSpaceOf 1 string ws
def 0

Return value

vector

Examples

// Get the local and world space scale of the rhumerus bone.
vector $localScale;
vector $wsScale;

// First the local
$localScale = `getScale "rhumerus"`; 

// And then the world space
$wsScale = `getScale "rhumerus" -ws`;
print $localScale;
print $wsScale;

Additional information

Related commands