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

Selects keys on related channels

Because channels in Shogun Post can be independently selected and operated on, a key that is selected on a channel at a given frame might not be selected on its "related" channels. For example, [findBadData](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737116) may select keys on the TranslationX channel at a given frame, but not on the TranslationY or TranslationZ channels.

This command selects the keys at that frame on TranslationY and TranslationZ (if the keys exist).

## Functional area

Selection

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `selectRelatedKeys` |

### Arguments

None

### Flags

None

## Return value

void

> Macro (scroll-pagebreak)

## Examples

```plaintext
// Find noise on the LFWT marker and select any related
// keys on the noisy channels.
select LFWT;
findBadData 5 0.1 35 -all -selected;
 
// findBadData might have selected keys "unevenly". Make
// sure keys on "related" channels are selected as well.
selectRelatedKeys;
```

# Additional information

## Related commands

- [findSelectedKeys](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738574)
- [selectKeys](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737266)