thanks for your help! the example tox are able to communicate with and turn on the LED ring, but i am still unable to control the led emission color and intensity in a predictable way.
I believe this is because the oscOut CHOP does not support sending OSC Blob formatted messages.
I have found an example python snippet for formatting osc messages as blobs. Is it possible to create a custom python object in Touch for converting OSC data into blob format?
code pasted below:
“”“Convert a string into an OSC Blob.
An OSC-Blob is a binary encoded block of data, prepended by a ‘size’ (int32).
The size is always a mutiple of 4 bytes.
The blob ends with 0 to 3 zero-bytes (‘\x00’)
“””
I created a text DAT named oscMessageClass and pasted the pyOSC library into it.
I then connected a TOPto CHOP, which reads in color values determined by a Constant TOP, to an Expression CHOP.
The expression CHOP has the expression me.mod.oscMessageClass.OSCString(next) for each channel of data to be converted to a blob.
I receive the following error (shown in the attached image file - the line of code with the error is in the bottom right screen in the image)
Is the issue with the way the data is formatted in the CHOPs? is that information different than what the python code is expecting? if so, is there a way to convert CHOP data to a format the OSCString function can interpret, or should I try to create a chopto DAT connected to an eval DAT instead?
Did you manage to make this work? We are trying to do a similar thing using touch designer to communicate with LEDs using an xosc. How did you get the osc Blob output from rgb values?