set coll name?

MIB's icon

I know I can refer an unnamed coll to a named coll. But is there a way to actually "name" a coll dynamically (something like "set myNewName")?

My situation is this: I have an abstraction that collects a bunch of data into a coll. I then want to display it with jit.cellblock. No problem (refer again). I want to be able to have several instances of those abstractions running at any given time and therefor would need different coll names in each.
I know that I could do [coll #0_reference 1], but then I need to store and send out the unique name each time. I would much rather use patcherargs to let the user choose the coll name.

Hope I am making sense here... any suggestions?

elmiller's icon

Hi,

I came up with a potential solution using js. I am very new to js, so it may not be the best way to do it, but it seems to work.

Hopefully it helps,
Eric

1425.collnamer.zip
zip
elmiller's icon

Sorry, did you mean that you wanted to have data remain in the coll when being renamed? If so, then my solution is not much of a solution...