---
title: "setParameter"
canonical: "https://help.vicon.com/space/Shogun112/31228573/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

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

| **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/Shogun112/pages/31232180)
- [getParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31229862)
- [getParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31235097)
- [hasParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31233242)
- [listParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31233252)
- [removeAllParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31227933)
- [removeParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31229794)
- [removeUnusedParameters](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31233720)
- [renameParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31228315)
- [selectByParameter](https://vicon-help.atlassian.net/wiki/spaces/Shogun112/pages/31236130)