[Bug] Grab + Coll?

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

OS X El Capitan
Max 7.0.6
Does anyone use grab?
When sending a query to a value within coll using grab, no output is sent from the left outlet of coll. That's expected.
But the value index is sent from the second-from-left outlet. I didn't expect that. Is it a bug?

pdelges's icon

I do use grab, but not that often with coll as you can use multiple instances of the same coll in the patch, which gives generally more readable patches.
Anyway, you need to give grab the number of outlet it needs to match those of the connected object. With coll, you have to use [grab 4].

p

1offby's icon

Thanks Patrick!
I never knew grab took arguments. Guess I never looked at the help patch or the reference file.

metamax's icon

When sending a query to a value within coll using grab, no output is sent from the left outlet of coll. That’s expected."

I don't think that is the intended behavior. Messages sent from [grab] don't cause an object to output values. It grabs them and acts as the output. Coll has four outlets, hence [grab 4] will make the first four outlets of [grab] act as the outlets of [coll]. [grab 2] will output the first two outlets of [coll].