Change Color attribute of single Nodes without attrui?

Nov 17, 2012 at 4:02am

Change Color attribute of single Nodes without attrui?

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!

#65248
Nov 17, 2012 at 4:27am

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…

– Pasted Max Patch, click to expand. –
#235191
Nov 17, 2012 at 7:59am

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?

#235192
Nov 17, 2012 at 5:33pm

See the nodes help file, the colors tab.

#235193
Nov 17, 2012 at 6:38pm

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?

#235194
Nov 17, 2012 at 6:41pm

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?

#235195
Nov 17, 2012 at 8:52pm

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.

#235196
Nov 17, 2012 at 10:40pm

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

#235197
Nov 21, 2012 at 11:30pm

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

#235198

You must be logged in to reply to this topic.