> For the complete documentation index, see [llms.txt](https://docs.lightact.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lightact.com/osc-and-midi/receiving-osc/oscin.md).

# Controlling Layers with OSC

<div align="left"><figure><img src="/files/lVKzDoWspuWVcbFfWg27" alt=""><figcaption></figcaption></figure></div>

All variables that have a small **OSC** button can be controlled via OSC protocol.

<div align="left"><figure><img src="/files/WjdC0cT9BZhgVdz3wVFf" alt=""><figcaption></figcaption></figure></div>

This can be achieved in the **OSC In** window where if you click on **Regenerate** button, every Layer variable with OSC flag set to True, will get a unique OSC address.

<div align="left"><figure><img src="/files/ddOKZzevEW7ocaBu4f56" alt=""><figcaption></figcaption></figure></div>

When an OSC message with the correct address arrives, the green circle will light up.

<div align="left"><figure><img src="/files/URsG5rejRiHLGbnB0GYy" alt=""><figcaption></figcaption></figure></div>

In Layer Properties the OSC flag of that variable will turn green and the variable's value will get set.
