Skip to content

Api > OSC > TryBindAddressPattern()


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:⚓︎

Name Type Description
address string Address to bind.
function function Function to be executed when OSC message received.

Returns:⚓︎

type Description
boolean true if the operation was successful

Usage⚓︎

---@type string
local address;

---@type function
local function;


local val0 = OSC:TryBindAddressPattern(address, function)