Displaying words out of a coll?

Apr 22, 2013 at 12:12pm

Displaying words out of a coll?

I have a coll which has stored in it a list of words. I want max to randomly display one of the words in the coll onscreen. However, I can’t find a way to do the displaying part of this. All the things like text box require a “set” message sent to them which doesn’t itself seem to take an argument which might contain the word which I want to display. Is there anything that can do this? Where I can just get the input out of my coll and display it simply on screen as text?

(Also whenever I get my word out of coll into a message box it is prefaced by the word “symbol”? – any ideas why this might be happening?)

#67864
Apr 22, 2013 at 12:27pm

Hi there,

This should do it, if not let me know!

– Pasted Max Patch, click to expand. –
#244052
Apr 22, 2013 at 12:37pm

Here’s a slightly better patch that can sort float, ints, and symbols.

– Pasted Max Patch, click to expand. –
#244053
Apr 22, 2013 at 12:47pm

There are many ways to do it

`

– Pasted Max Patch, click to expand. –
#244054
Apr 22, 2013 at 1:06pm

Thanks so much everyone.

#244055

You must be logged in to reply to this topic.