this is a small patch i wrote to convert switches info from a lemur to a max matrixctrl object.
The switch object is a grid of button sending a list of 0 and 1 values, corresponding to the state of each button. (4 x 4 switches = array of 16 numbers etc...)
The 2 arguments of my object are the dimensions of the switch array (x and y)
For some reason, it's working fine up to 9 x 9 switches, but gives a list formatting error when you reach 10 x 10 switch.
I can't figure why.
Any ideas would be welcome !
Thanks in advance.