---
title: "getAnimEnd"
canonical: "https://help.vicon.com/space/ShogunPost120/1043039103/getAnimEnd"
format: markdown
---
# Description

The getAnimEnd command automatically identifies the last frame in the animation range.

The value returned may be assigned to an integer variable.

## Functional area

Data retrieval

# Command syntax

## Syntax

|  |
| --- |
| `getAnimEnd` |

### Arguments

None

### Flags

None

## Return value

integer

returns the frame number of the animation Range

## Examples

```plaintext
int $end = `getAnimEnd`;
print $end;
// In this example, an integer variable named $end is declared and 
// assigned the output of the getAnimEnd command.
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [animRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039091)
- [fastForward](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039941)
- [getPlayEnd](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038475)
- [getPlayStart](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039030)
- [getTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039065)
- [play](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039141)
- [playOptions](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038469)
- [playRange](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043040729)
- [setRangesFollowActiveClip](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039292)
- [setTime](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038804)
- [step](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039582)
- [stepKey](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038580)
- [stop](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038460)