How do I send a multiple list to change a color attribute?

zach's icon

This seems like it would be an easy thing to do, but say I have an @color attribute with four values (r,g,b,a)... how do I send them at once? Basically what I want to do is randomize colors by varying the levels of these numbers. I tried using the pak command but couldn't figure it out.

zach's icon

Bump.

I am trying to send multiple attributes to things like color values and matrix numbers. For example how do you send two or four values at once? I know I can send it as a message say "10 10" but I want to be able to vary the numbers easily with integer things.

zach's icon

I can use the pack feature and set two values at once, but it only bangs on the left inlet. How do I get it so it changes anytime a value is changed? For example on the dim attribute in the jit.matrix, I am trying to vary it between like 5 5 to 50 50 by changing values on the integers. The pack command only sets it when I change the left value, changing the right value does nothing until I change the left value again.

zach's icon

Ah ha! Thank you...

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

Here's how to do it with [pack], which is of limited usefulness because that's exactly what [pak] is for... but the [t] or [trigger] object is indispensable for many things Max, just wanted to point it out.