# Set Media Loop

## Overview

![The Set Media Loop Node.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-77034036b6403da5abb3cfbdf31e1475c4bd474a%2Fsetmedialoopnode20241.png?alt=media)

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**](https://docs.incari.com/incari-studio/overview#scopes): **Scene**, **Function**, **Prefab**.

## Attributes

![The Set Media Loop Node Attributes.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-1105c3112b56d5b882ff07b145e53e7721108551%2Fsetmedialoopatts.png?alt=media)

| 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**](https://docs.incari.com/incari-studio/toolbox/incari/media/getmedialoop)
