# Controlling Layers with OSC

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FQHu2ZajhuYgWJbVNxJtn%2Fimage.png?alt=media&#x26;token=288889c4-75c5-4390-904c-2903199ebff8" 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="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fn6fVvIJnwdohDKZGQ8iy%2Fimage.png?alt=media&#x26;token=bc642aa1-d585-4845-8f86-e1fc33cd3ddd" 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="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2Fi4NDnHLAFwX4SO2q4Pyq%2Fimage.png?alt=media&#x26;token=7c539e08-c9d1-4b50-9b3e-0a421baf1869" alt=""><figcaption></figcaption></figure></div>

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

<div align="left"><figure><img src="https://3312042618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9sVaJpWJhPbmscipukhh%2Fuploads%2FyDzT3vuXTBjfQeJMYt7G%2Fimage.png?alt=media&#x26;token=76a859ba-77d2-4dbf-b701-f69980b71bb0" 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.
