# Play Animation

A detailed explanation of controls and interface functions is described in the section [State Machine Builder User Interface](https://docs.google.com/document/d/1-o5qSv4zTkzj7YSmRTkV4zezFq7lwU00FyTy0kw1l1U/edit#bookmark=id.6vu41emx3478).

1. Within the edit Simulation section of the HyperSkill Desktop application, navigate to the State Machine tab.
2. Click on the desired state and from the dropdown in either the entry or exit actions select the type Play Animation.
3. Press the + button to add the state to the action list.

<figure><img src="/files/Aue287hhhiYhTO9C7KVM" alt=""><figcaption></figcaption></figure>

4. &#x20;Select the entity from the ![](/files/76vXnZ0yAMYpm4KFs8KX) dropdown. Any VO can be selected at this point regardless of whether it has an animation on it or not.
5. Select Animation from the ![](/files/ejahTsTksfMI19toHnfg) dropdown. This will only be populated if an animation exists on the selected entity.
6. If you only want to play part of an entire animation, you can select the Sub Clip field. This will allow you to utilize the Start Time and End Time fields to control which frames of the animation will play.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.siminsights.com/authoring-a-simulation/state-machine/actions/play-animation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
