IO Functions
For some IO-Connections, there are some special functions available.
OSC
First create an OSC IO connection, if you have more than 1 OSC IO connection in the project, the instance number would be different for each of them. For example OSC1, OSC2, etc.
Depending on which OSC IO connection you would like to send the data out from, you will need to adjust it accordingly, but the overall structure would be the same.
sp.OSC1.send()
generic send function
sp.OSC1.send("address", variable)
sp.OSC1.send_color("address", [r,g,b,a])
send a color message to the specified address
sp.OSC1.send_color("SP/Test", [1,1,0,1])
sp.OSC1.send_float("address", float)
send a float message to the specified address
sp.OSC1.send_integer("address", int)
send an integer message to the specified address
sp.OSC1.send_point("address", [float, float])
send a point message to the specified address
sp.OSC1.send_string("address", "string")
send a string message to the specified address
sp.OSC1.send_vector("address", [float, float, float])
send a vector message to the specified address
UDP
sp.UDP1.send()
send UDP variables
sp.UDP1.send(123.456) for a Float
sp.UDP1.send(123) for a Integer
sp.UDP1.send("Hello") for a String
sp.UDP1.send(1) for a Bool
sp.UDP1.sendBytes(byte0, byte1, ..., byteN])
send bytes with the UDP sender
sp.UDP1.sendHex()
send Hex values with the UDP sender
sp.UDP1.sendHex("7370") sp.UDP1.sendHex("0x7370")
TCP
sp.TCPClient1.send()
send TCP message with TCP Client
sp.TCPClient1.sendBytes()
send bytes with TCP client
sp.TCPClient1.sendHex()
send Hex values with TCP client
sp.TCPClient1.sent_ascii_message()
send ASCII message with TCP client
sp.TCPClient1.sent_hex_message()
send HEX message with TCP client
Last updated