Last active
June 15, 2021 17:22
-
-
Save williamfields/88255f43b39bdc915431636672f4e404 to your computer and use it in GitHub Desktop.
TouchOSC: Reset all faders in a grid to a value
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 resetGrid(grid,setTo) | |
local gridColumns = grid.properties.gridX | |
local gridRows = grid.properties.gridY | |
for i=1,gridRows*gridColumns,1 | |
do | |
grid.children[i].values.x = setTo | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment