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

Sets a new value for a dynamic parameter.

Given a parameter name, if the parameter exists on the selected character or a character is specified with the `-onMod` flag, the parameter value is set to the new value specified in the second argument. For dynamic parameters only.

## Functional area

Parameters

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `setParameter parameterName parameterValue[-onMod string] [-solving]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `parameterName` | String | Yes | Defines the name of the parameter. |
| `parameterValue` | Float | Yes | Defines the new value for the parameter. |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | Defines the character that the parameter should be found on. |
| `solving` |  |  |  |  |

## Return value

void

## Examples

```plaintext
// Set the parameter named UpperArmLength to 200.
setParameter "UpperArmLength" 200.0;
```

# Additional information

## Related commands

- [addParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736903)
- [getParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737086)
- [getParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737369)
- [hasParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738347)
- [listParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738291)
- [removeAllParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738025)
- [removeParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739919)
- [removeUnusedParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736542)
- [renameParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739810)
- [selectByParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738593)