Get a coll's name ?
Hi there, I've got a small abstraction (see attachement) that assigns a random name to a coll.
Somewhere else in the patch I need to use the same coll that is nested in the abstraction. I'd use the "refer" message to bind the coll to the correct one, but unfortunately I can't seem to be able to query its name.
Any idea ?
You could add a message with (#0_ThisColl) to the abstraction, then route a (getname) message and send that out an extra outlet as a workaround.
Abstraction:
Main patcher:
Wonderful, thank you so much !
So basically, whenever you put #0 in a patch, #0 is always replaced by the same number ?
And if I want to generate several random names, I'd go with #1, #2, and so on ?
Is there some documentation about those "random naming" conventions ?
#0 inside an abstraction is always a "unique" number in the sense that if you make multiple instances of the abstraction they get a different number. But inside the scope of one of those abstractions all the #0 will indeed have the same value. But if you go one level deeper the #0 will be a different unique number again. #1, #2... are replaced by arguments given to the abstraction in the patcher one level up. This example passes 3 unique numbers to an abstraction one level up:
That makes everything clear. Thanks so much.