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

Gets the trajectory ranges of given marker.

Given a marker, this command returns an array of integers consisting of pairs of frame numbers. Each pair marks the start and end frame of a trajectory. The total number of trajectories returned is half the array size.

## Functional area

Data retrieval

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `getTrajectories marker` |

### Arguments

None

### Flags

None

## Return value

integer array

## Examples

```plaintext
// Get the trajectory ranges for LFHD
int $ranges[] = `getTrajectories "LFHD"`;
print $ranges;
```