Line Argument Question

cskonopka's icon

I've been wanting to find a way to implement arguments into the [line] object in real time but i'm having a major issue trying to add a comma into the argument. So essentially i'm trying to group together a statement that will add the comma (ex. 0, 50 10000) but every time I try to combine an int that has a comma attached, it will disappear. I attached the patch to this point and hopefully someone can help me out with this. Thanks for reading!

3721.LineComma.maxpat
Max Patch
Christopher Dobrian's icon

The comma to separate messages is only meaningful in a message box, and separates one message from another. So "2426, 2082 3536" in a message box is really just two separate messages: "2426" followed immediately by "2082 3536" (or, more exactly, "int 2426" followed by "list 2082 3536"). You may have known that already, but the point is that you don't need to assemble them in a message box; you can just send those two messages separately, one immediately after the other, and the effect will be the same.

cskonopka's icon

There I go overworking again! This works perfectly for what I want to do. Thank you for responding and saving me time :)

Ameqc's icon

use one of the 2 examples

Max Patch
Copy patch and select New From Clipboard in Max.

Ameqc's icon

the "," will append a comma after the first variable or value in a message