Trying to create a parameter option for grid rotation that includes textual representation of the degrees. As the grid_rotation values are 0 to 3, I’m having a bit of trouble getting things set up. Here’s what I have:
local grid_display_options = {"0", "90", "180", "270"}
params:add{type = "option", id = "grid_rotation", name = "Grid Rotation", options = grid_display_options, default = 0,
action = function(value)
grid_device:all(0)
grid_device:rotation(value)
grid_device:refresh()
end}
The result of this is that grid rotation gets set to the 90 degree value (1 in the array).
Any ideas for how I can fix this? Thanks.