# Set Media Loop

## Overview

![The Set Media Loop Node.](/files/DK5Qah3fhGJ9qG1sigpJ)

The **Set Media Loop Node** sets the `Loop` **Bool** for a **Media Object** to either *true* or *false*. *True* means that the **Media** restarts when it finishes, *false* means that it doesn’t.

[**Scope**](/incari-studio/2024.1/toolbox/overview.md#scopes): **Scene**, **Function**, **Prefab**.

## Attributes

![The Set Media Loop Node Attributes.](/files/F3WHFO2O9YXuNvg4ah3Y)

| Attribute | Type     | Description                                                                                                                                                                                                                                                         |
| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Loop`    | **Bool** | The **Bool** that sets the **Media Object** to loop or not, if nothing is provided in the **Input Socket**. When toggled on, the **Media Object** will be set to restart when it finishes. When toggled off, the **Media Object** will be set to finish at its end. |

## Inputs

| Input             | Type         | Description                                                           |
| ----------------- | ------------ | --------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**. |
| `Object ID`       | **ObjectID** | The **Media Object** for which the `Loop` **Bool** will be set.       |
| `Loop`            | **Bool**     | Sets `Loop` to *true* or *false*.                                     |

## 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. |

## See Also

* [**Get Media Loop**](/incari-studio/2024.1/toolbox/incari/media/getmedialoop.md)


---

# 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.incari.com/incari-studio/2024.1/toolbox/incari/media/setmedialoop.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.
