# Sending OSC

## Sending OSC

OSC sender can send different types of values (e.g. integer, float, string) to specific OSC message addresses.

### Setup in the Devices window

<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-70b237a6099583245d85dccbb97cc111bb223945%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

Insert a **OSC Sender** node and after you set *Stream* parameters check the **Send** checkbox.​

### Setup in the Layouts window

<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-e977cbce116db47f604aca4ad6afd8a0e70df943%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

In the *Search* menu type **Send** **OSC** and choose which data type of data you would like to send.

<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-109142cc4a105680c4aedac6230b06ebd19d1668%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

In the *Send OSC* node, choose the device in **Device** input, enter the OSC address in the **Address** string input and you are ready to send data to that address.

### Bundle messages

<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-a9220519ee9cab5131ce326538228de8d9e40f85%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

LightAct offers the option to send multiple values in a bundle message. This means that you can send multiple values to the same address by using only 1 **OSC Sender** device. For this option, we need to create multiple **Send OSC** layer nodes and connect them via **Lifeline** input/output.

<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-b5d2374d0d2ab0c954513ae686c8d347dcba465d%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

In order to enable sending a bundle check **Send as bundle** checkbox.

The received message will look like this:

<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-18459d2bea8627f1d11023ad9b8516674c1edfb4%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>

This is very useful because we can pack multiple values in a single message and extract them via an index in a **Read OSC** layer node like this:

<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-1fbb6ee588641634d79f6285aa018dac93372b75%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure></div>
