matrixctrl right output
Hey Folks
Maybe I have become Max blind and the answer is only a keystroke away, but I need to output all the three individual cell values from a matrixctrl at once.
I know that I can send a getrow or getcolumn message and iterate through the object but the reference page also says that if you bang the matrixctrl all the three values from each button will be send to the right outlet as a list !
I have tried unpack, prepend set/ message box, print - but no output when banging !
Best regards,
Thomas
It does work on my computer. Sending a bang makes matrixctrl output all the points x,y,value to the left inlet.
I think you misunderstand the reference page. When you send [matrixctrl] a bang it will send a stream of "x y value" lists from its first outlet (the left one). The "getrow" and "getcolumn" messages will send a list out the right outlet of just the values for that particular line.
lh
yes, I may have misunderstood or interpreted the reference page to suit my need !!
I thought it was the x,y,value from all the cells in the matrixctrl that you would have in the right outlet when banging.
Like when you send a list of values to the input .
I got it. Left outlet rules !
This was what I needed to do. Thanks a lot for waking me up !
Maybe something like this will work for you. Using the "nsub" message to [coll] means you don't have to iterate through all the locations in the [matrixctrl] each time. And selecting on/off states doesn't shift the counter position. I hope it helps.
lh
Thanks a lot !