---
title: "getPlayEnd"
canonical: "https://help.vicon.com/space/ShogunPost121/1253738077/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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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/ShogunPost121/pages/1253737864)
- [fastForward](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736984)
- [getAnimEnd](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738102)
- [getPlayStart](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737434)
- [getTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736823)
- [play](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737029)
- [playOptions](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736691)
- [playRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737114)
- [setRangesFollowActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736779)
- [setTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737046)
- [step](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737636)
- [stepKey](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737885)
- [stop](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737596)