---
title: "getAnimEnd"
canonical: "https://help.vicon.com/space/ShogunPost115/276210472/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/ShogunPost115/pages/276205954)
- [fastForward](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276213607)
- [getPlayEnd](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost115/pages/276212497)
- [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)