Matrixctrl - Row and column as one number

Ploidy's icon

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 8x8 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.

pechnatunk's icon

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

Emmanuel Jourdan's icon

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

Max Patch
Copy patch and select New From Clipboard in Max.

Ploidy's icon

Exactly what i needed, Thanks sooo much.