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

Gets the frame numbers on which there are keys for the specified module and the specified channel.

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getKeys propertyName [-onMod string]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `propertyName` | string | yes | Name of the channel property to count keys for |

### Flags

| Name | Flag arguments | Argument type | Exclusive to | Comments |
| --- | --- | --- | --- | --- |
| `onMod` | 1 | string | — | Returns the keys for the specified module only. |

## Return value

integer array

## Examples

```plaintext
//print the frame numbers for all translation keys for the LFHD Marker
int $keys[] = `getKeys Translation -onMod "LFHD"`;
print $keys;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [getNumKeys](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736846)
- [getSelectedKeys](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737269)
- [getTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736823)