---
title: "setScale"
canonical: "https://help.vicon.com/space/Shogun112/31230039/setScale"
format: markdown
---
# Description

Use setScale to set the scale of a module in relative or world space coordinates.

setScale modifies the keys of the current frame. If no animation data exists when setScale is run, it creates a key.

## Functional area

Data manipulators

# Command syntax

## Syntax

|  |
| --- |
| `setScale "moduleName" scaleVec[-ws] [-def]` |

### Arguments

| **Name** | **Type** | **Required** | **Comments** |
| --- | --- | --- | --- |
| `scaleVec` |  |  | The vector data to apply |
| `moduleName` |  |  | Name of the module you want to modify |

### Flags

> Macro (scroll-tablelayout)

| **Name** | **Flag arguments** | **Argument type** | **Exclusive to** | **Comments** |
| --- | --- | --- | --- | --- |
| `ws` | 0 | — | — | ScaleVec data is applied in world space coordinates |
| `def` | 0 | — | — | — |

## Return value

void

## Examples

```plaintext
//Create a marker and set its scale
create Marker "marker1";
setScale marker1 <<100, 0, 0>>;
```

# Additional information

## Related commands

- [setKey](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231470)
- [setPosition](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31238122)
- [setRotation](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31231135)