---
title: "getPlayEnd"
canonical: "https://help.vicon.com/space/ShogunPost115/276212497/getPlayEnd"
format: markdown
---
# Description

This command enables you to query your scene for the last frame of the play range.

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getPlayEnd` |

### Arguments

None

### Flags

None

## Return value

integer

Returns the play ranges end time.

## Examples

```plaintext
int $end = `getPlayEnd`;
print $end;
// Assigns the result of the getPlayEnd command to an integer 
// variable called "$end"; prints the value of the variable
// to the interface.
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [animRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276205954)
- [fastForward](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276213607)
- [getAnimEnd](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276210472)
- [getPlayStart](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276210963)
- [getTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276207590)
- [play](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276206480)
- [playOptions](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276213179)
- [playRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276205025)
- [setRangesFollowActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276202902)
- [setTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276208391)
- [step](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276211823)
- [stepKey](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276212782)
- [stop](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276208879)