Last active
June 15, 2021 17:22
-
-
Save williamfields/57e849f508c6010101d2fc399a510323 to your computer and use it in GitHub Desktop.
TouchOSC: Print object values and properties to the log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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