---
title: "setScale"
canonical: "https://help.vicon.com/space/ShogunPost121/1253736896/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

> Macro (scroll-tablelayout)

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

> Macro (scroll-pagebreak)

## 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/ShogunPost121/pages/1253737949)
- [setPosition](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737651)
- [setRotation](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737306)