Matrixctrl – Row and column as one number

Jun 6, 2009 at 2:57am

Matrixctrl – Row and column as one number

Hello,
I cannot seem to figure this out. I am looking for a way to combine row and column data from Matrixctrl. So say row = 7 and column = 7, you would get 77, then have it converted from octal to decimal so i can get a number between 0 and 63 from an 8×8 matrixctrl. I searched but couldnt find anything doing this as i dont know what to call combining numbers as such. Any help would be much appreciated. Unless there is an easier way to do it.

#44265
Jun 6, 2009 at 7:30am

If I’m understanding you right – [sprintf] and [coll] should do the trick.

#159128
Jun 6, 2009 at 12:01pm

I would recommend doing Math instead of sprintf which is an object mainly designed to make symbols manipulation. * 8 is what you’re looking for

– Pasted Max Patch, click to expand. –
#159129
Jun 6, 2009 at 9:32pm

Exactly what i needed, Thanks sooo much.

#159130

You must be logged in to reply to this topic.