storing coordinates and recalling them as an integer

kmcdona's icon

hey everyone

first time posting here.

i was wondering if anyone had any idea how to store a list of x,y coordinates and then assign each coordinate set an integer.

example
0,3 = 1

when i bang a message containing a list 0,3
the output is 1

i tried using coll but it does not accept input coordinates. i can however recall coordinates. which is the inverse of what i would like to do.

any help would be appreciated

kmcdona's icon

i would like to predetermine various coordinate sets and assign them each an integer so i can recall them later... alot like coll

mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

You can do this with coll, but don't use a comma in your index. commas have special meaning in max messages. See:

kmcdona's icon

amazing thanks mzed :) i knew it was missing something with coll

kmcdona's icon

hi again

sorry if this is a rather amateur question... but ive only ever used max as a problem solving tool over the years.

by any chance would you know which object i should use to combine two integers into a single stream

example

0 and 3
and have them output combined with a dash
0-3

im able to pak them as (0 - 3) using {pak 0 symbol 0}

kmcdona's icon

nvm used tosymbol object worked like a charm

mzed's icon

"combine" would also work.