---
title: "getPlayEnd"
canonical: "https://help.vicon.com/space/ShogunPost118/544280531/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/ShogunPost118/pages/544278817)
- [fastForward](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544279629)
- [getAnimEnd](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544279852)
- [getPlayStart](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544280538)
- [getTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544280777)
- [play](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544281250)
- [playOptions](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544281264)
- [playRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544281271)
- [setRangesFollowActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544282394)
- [setTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544282510)
- [step](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544282763)
- [stepKey](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544282770)
- [stop](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost118/pages/544282777)