Help: Convert Serial Data to CHOP, Trigger Button, and Send OSC

Hi everyone,

I’m working on a project in TouchDesigner 099, and I need help with handling serial data and using it in different ways:

What I want to achieve:

  1. Read multiple numeric values from a Serial DAT (Baud rate 115200)
  2. Convert those values into CHOP channels
  3. Use the values to:
    Trigger a play button when a certain value is received (like 1 or play)
    Control a Select CHOP or Switch CHOP to choose between CHOP inputs
    Send the data out as OSC messages using OSC Out CHOP

I’m new to combining serial with OSC in TouchDesigner, so any advice, examples, or shared .toe files would be really appreciated :folded_hands:

Thanks in advance!

— yasir

Hi @yasir_ashraf,

the Serial DAT has a callback DAT attached to it with a onReceive function in which you can parse the data and decide what to do with it.
Now this heavily depends on what kind of data you are receiving and is it all data that is controlling a single value?

Can you describe your setup a bit more - what kind of data is being received and is it all numbers or also strings? Is it coming from a certain device?
Also: how is your python level? This might require some scripting.

cheers
Markus