# Controlling Layers with DMX

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FovilsX9StwOJrEg5DkcX%2Fimage.png?alt=media&#x26;token=256ce418-846f-4252-9144-25d9a05a9343" alt=""><figcaption></figcaption></figure></div>

By default, every layer has **Universe** and **Channel** properties in the **DMX** variable group set to -1. This means that this layer is not controlled with DMX.

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FH5nBWBIaM6fjxx5fub0A%2FmappingLayersToDMX.gif?alt=media&#x26;token=c1988126-2e56-4368-8be5-6f21e03e7d0f" alt=""><figcaption></figcaption></figure>

To map a layer to a particular DMX channel, just drag from that channel to the layer you want to map. In the background this will set the Universe and Channel variables.

## DMX Personality of a Layer

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FH4Ge1nr1eySXkjNnIKlA%2Fimage.png?alt=media&#x26;token=9f4347d5-44c9-41f8-be73-f2f97f8625e4" alt=""><figcaption></figcaption></figure></div>

If you hover above a particular channel, the tooltip will tell you which layer and which variable is mapped to it.&#x20;

{% hint style="info" %}
**Good to know**: all Stock Layer templates have DMX footprints already set up so you don't have to do anything.
{% endhint %}

Let's see how a DMX footprint of the layer is set up.

### DMX Properties of Layer Variables

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FmElw1DABrNX3oCIy327d%2Fimage.png?alt=media&#x26;token=2dc5ef03-0820-4c0b-a47b-f1a6ddd468b6" alt=""><figcaption></figcaption></figure></div>

Whether a particular variable is included in the footprint is governed by the **Include in DMX In** checkbox in the right-click menu of the variable.

In this menu, you can also determine if this variable is 8, 16, 24 or 32 bit.

{% hint style="info" %}
**Good to know:** DMX control of certain variable types such as Mapping, Device and Asset is done through [Index Manager](https://docs.lightact.com/dmx/dmx-in/index-manager).
{% endhint %}

### DMX Flag of a Variable

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FAd7FT2OszB0zMrMexrO5%2Fimage.png?alt=media&#x26;token=27a107b2-a3ab-4a56-838e-6b5c67fbe6f1" alt=""><figcaption></figcaption></figure></div>

If you want to temporarily disable DMX setting a particular variable, you can disable the DMX flag. This flag will turn green if that DMX variable is currently being set by DMX.

### Remap value

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FRM664YIZbn2ZhDI51sSx%2Fimage.png?alt=media&#x26;token=ca8ea21c-1961-45c5-87a6-189c6d388feb" alt=""><figcaption></figcaption></figure></div>

If **Remap value** is left unchecked, LightAct will set the value of the mapped variable to the raw value of the assigned DMX Channel.&#x20;

If *Remap value* is checked, it will set the value of the variable based on the Min and Max values of this variable.&#x20;

For example, let's say that:

1. Min and Max of a variable are 0 and 1000 respectively
2. incoming DMX value is 255
3. variable is going to be set to 1000
4. if the incoming value is 0, the variable is going to be set to 0.

### Exporting DMX Personality

<figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FYxGIDN7JwhhBBaZkbfOE%2Fimage.png?alt=media&#x26;token=6fccfc26-a80a-45b0-b3cc-b17dab54c1b6" alt=""><figcaption></figcaption></figure>

To export DMX personality of a layer, open the Layer's layout and click on either **Export GDTF** or **Export PDF**.
