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

Renames a parameter. The parameter to be renamed will be looked for on the selected character unless the `-onMod` option is used.

## Functional area

Parameters

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `renameParameter parameterName newName [-onMod string] [-solving]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `parameterName` | String | Yes | The name of the parameter to be renamed. |
| `newName` | String | Yes | The new name of the parameter. |

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | Defines the character with parameter to rename. |
| `solving` |  |  |  |  |

## Return value

void

> Macro (16dcb1b2-c6fb-4c23-a096-38455b87e6a8/1fa5e51a-a28e-46e1-9b5c-734b339f025f/static/scroll-pagebreak)

## Examples

```plaintext
// Rename the parameter UpperArmLength to LowerArmLength. 
renameParameter "UpperArmLength" "LowerArmLength";
```

# Additional information

## Related commands

- [addParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736903)
- [hasParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738347)
- [listParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738291)
- [removeParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739919)
- [removeUnusedParameters](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736542)
- [setParameter](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737311)