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

Creates a key on the selected properties of the selected modules at the current frame. The value set for the key is a value interpolated from surrounding keys, if any exist. If none exist the values are 0, 0, 0.

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `createKey` |

### Arguments

None

### Flags

None

## Return value

void

## Examples

```plaintext
// A key is created on the XYZ Translation properties of the markers 
// LMWT, and LFWT.
selectProperty "TranslationX" "TranslationY" "TranslationZ";
select LMWT LFWT; 
createKey;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [copyKeys](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737188)
- [cutKeys](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737175)
- [setProperty](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736551)