Skip to main content

OSC.TryBindAddressPattern(string address, function function)

Binds an address to a provided Lua function. Returns true if the operation was successful. Note that the provided functions parameters must match message received by OSC both in order and type.

Parameters:

NameTypeDescription
addressstringAddress to bind.
functionfunctionFunction to be executed when OSC message received.

Returns:

typeDescription
booleantrue if the operation was successful

Usage

---@type string
local address;

---@type function
local function;


local val0 = OSC:TryBindAddressPattern(address, function)