# Play Animation

## Overview

![The Play Animation Node.](https://2523600638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-2530645121%2Fuploads%2Fgit-blob-453508f8c7d0c7f245f8703a21f852d5595c772d%2Fplayanimation.png?alt=media)

![The Play Animation Block Node.](https://2523600638-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-2530645121%2Fuploads%2Fgit-blob-54ca4f367042660468dd86c6d71d9b36b85daffa%2Fplayanimationwithfile.png?alt=media)

**Play Animation** is an **Animation** **Node** used to play an **Animation** that can be used with **Pause Animation** and **Stop Animation**. Once an **Animation** is created in the **Animation Editor Module**, it can be selected in the file selector. A drop-down will appear that allows the user to choose an **Animation Block**. This will show up as a blue-colored input on the **Play Animation Node**.

### Attributes

| Attribute | Type           | Description                                                                                                                                                                                                                                                                                     |
| --------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `File`    | **User Input** | The selected **Animation** file created in the **Animation Editor**. The user can drag a file from their library or select a file from a file tree. The icons to the right allow the user to confirm the selection, highlight the **Asset** in the **Asset Manager**, and remove the selection. |
| `Name`    | **Drop-down**  | The specified **Animation Block** created in the **Animation Editor**. In the sample image, it is labeled **Animation Block**, but it is useful to name it in relation to the animation purpose.                                                                                                |

### Inputs

| Input             | Type           | Description                                                           |
| ----------------- | -------------- | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**      | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `Instance ID`     | **InstanceID** | The assigned **Instance** of an **Animation Block**.                  |

### Outputs

| Output             | Type           | Description                                                                                                                            |
| ------------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse**      | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `Instance ID`      | **InstanceID** | The previously assigned **Instance** of the **Animation Block**.                                                                       |
| `OnPlay`           | **Pulse**      | Flows to additional actions following **Play Animation** if the **Animation** is currently playing.                                    |
| `OnPause`          | **Pulse**      | Flows to additional actions following **Play Animation** if the **Animation** pauses.                                                  |
| `OnStop`           | **Pulse**      | Flows to additional actions following **Play Animation** if the **Animation** ends.                                                    |

## See Also

* [**Pause Animation**](https://docs.incari.com/incari-studio/2021.2/toolbox/incari/animation/pauseanimation)
* [**Stop Animation**](https://docs.incari.com/incari-studio/2021.2/toolbox/incari/animation/stopanimation)
