Skip to content

Instantly share code, notes, and snippets.

@williamfields
Last active June 15, 2021 17:22
Show Gist options
  • Save williamfields/57e849f508c6010101d2fc399a510323 to your computer and use it in GitHub Desktop.
Save williamfields/57e849f508c6010101d2fc399a510323 to your computer and use it in GitHub Desktop.
TouchOSC: Print object values and properties to the log
function printObject(object)
print("-------------------------------------------------")
print("Values of",object.properties.name)
print("-------------------------------------------------")
for key, value in pairs(object.values.keys) do
print(value,"=",object.values[value])
end
print("-------------------------------------------------")
print("Properties of",object.properties.name)
print("-------------------------------------------------")
for key, value in pairs(object.properties.keys) do
if value ~= "script" then
print(value,"=",object.properties[value])
end
end
print("-------------------------------------------------")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment