Change Color attribute of single Nodes without attrui?

Sym's icon

Hello,

I started working on an interactive project including the Node object.
My question is how to change the color of a single node with an attribute message.
For Example to trigger node 1 to be colored red or green?

It's easy to do with attrui in Max 6 or in the inspector but I need it to be triggered interactively.

Would be glad if someone can help me out!

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

that's really basic....
you can change attributes of a object always with sending messages to the object....
just look into the reference of any object to see what messages it does accept...

Sym's icon

thanks tobias! yes I knew that, but I missed what values it needs for the color, because I never stumbled on it before.

But how can I change the color of the individual nodes? It doesn't work for me in the patcher you attached?

Christopher Dobrian's icon

See the nodes help file, the colors tab.

Sym's icon

yes, still my problem is when connecting the swatch->attrui->nodes
I can select node or candy color and see the color change in attrui but in the node object nothing changes?

Sym's icon

just figured out that it works as soon as i change the size of the node object..
is there any way to apply the changes directly??

edit: things like bg color change directly? is this a bug?

Emmanuel Jourdan's icon

There's indeed a bug with nodes here. Sorry for the inconvenience, changing the color of a node doesn't refresh the nodes object properly. This has been fixed for the next incremental.

Sym's icon

thanks emmanuel! you know how long it will take till the next incremental?

Emmanuel Jourdan's icon

You'll find an updated version on the incremental page.