# Index manager

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-e3f53972432c0bd0980bfe215fbf40808ced1c1e%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

Index manager allows you to control *Layer variables* such as *Assets*, *Mappings* and *Devices* with DMX.

Index manager is categorized into *collections* and *slots*.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FrfcwwCGkCscOfoauN3Bb%2Fimage.png?alt=media&#x26;token=7adaf26c-3eff-4c78-a61d-aeacd6532e1b" alt=""><figcaption></figcaption></figure></div>

If you set the DMX flag of a layer variable of one of these 3 types to true and set it to 16bit, then you'll be able to use it with **Index manager**.

{% hint style="info" %}
**Good to know:** all stock layer templates have all variables set up to work with Index manager out of the box.
{% endhint %}

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-b8a1140655f7ef4bff38af8b741f3d5da08cb748%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

When you assign a particular layer to DMX In window, you'll see which channel these variables will listen to. In the above example *Video asset* variable of the *Video* layer will be determined by channel 16 and 17. In the above image, both of these channels are 0.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-a3a2ec609c9c06bb504a0ce8bdff494aedf7a6f6%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

This means that this Video asset variable will be set to the video asset in collection 0 and slot 0.

## Filling the slots

You can fill the slots automatically or manually.

### Autofilling Index Manager

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-9307f37292f51654a1384f3861b76388512bd9de%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

To fill the slots automatically, you can click on the properties icon and select Autofill.

Autofill analyses the names of objects (assets, mappings or devices) and asset collections and assigns them to the corresponding collection and slot.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-4a8854b9a4a123ff46f00236d9d1ce55d9de5a96%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

For example, the video asset *005\_theSnacks.mp4* is assigned to collection 0 because it's not in any *Asset collection* (in the *Assets* window). In this collection, it is assigned to slot 5, because it has 005 in the beginning of its name.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-26176ff1bb6314e125b53405b25420b471c2edf2%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

The video asset *002\_syncTest\_opus\_HAP.mov* video asset is assigned to slot 002 (because of the '002\_' in its name) and collection 1, because it's in an *Asset collection* called *001\_intro*.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-b2d6702596992389bbed107820cd5122c6ef33eb%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### Manually filling the slots

To fill them manually, just drag an asset from *Asset* window manually.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-efd75f92efe5ee6e23e5f783e630053f2945b7b0%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

To fill a *Mapping* collection slot, just drag from one of the mappings (screens, canvases, throwers...) to a slot.

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fgit-blob-e9f5ef835a48eb40e0264d4759d73703947b76d2%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

And to fill a *Device* collection, alt + drag from a device node onto a slot.

{% hint style="info" %}
**Good to know:** The examples above focus primarily on *Asset* indexing, but the approach is the same for *Devices* and *Mappings*.
{% endhint %}
