---
title: "getScale"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738112/getScale"
format: markdown
---
# Description

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

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

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

### Arguments

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

### Flags

> Macro (scroll-tablelayout)

| 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

> Macro (scroll-pagebreak)

## Examples

```plaintext
// 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

- [getRotation](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736976)