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

Reduce keys by removing extra keys

Use this command to remove extra keys from a marker where the position of the marker doesn't change between frames. There must be at least four consecutive frames of non-movement before any markers are removed; then the first two and the last frames in the set of unmoving keys are preserved (e.g. if the marker doesn't move between frames 1-10, this command keeps only frames 1, 2, and 10.)

## Functional area

Data editing

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `reduceKeys [-all] [-ranges]` |

### Arguments

None

### Flags

> Macro (scroll-tablelayout)

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `all` | 0 | — | ranges | Apply the reduction filter to all channels in the module |
| `ranges` | 0 | — | all | Apply the reduction filter only to the keys contained within the selected ranges. |

## Return value

void

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Select a marker
select Marker1;
  
// Reduce the keys on this marker
reduceKeys -all;
```