ScriptSpot

Forum topic · Scripts Wanted

Select Objects, run wantet script -> every object have an different color

By dremler · 2013-10-12

Description

Hello,

is there any existing script, who can do this?

I want to select objects (>>1000), run the script an get different colors vor every object.

If there is not such a script, can anyone write one for me?

Or is there an other way (all objects are instances of massfx and are cubes)

Thanks and regards.

Comments (3)

.

miauu · 2013-10-12


(
	for o in selection do o.wirecolor = (color (random 0 255) (random 0 255) (random 0 255))
)

dremler · 2013-10-12

Thank you for the fast help! It works great:)

barigazy · 2013-10-12

One more example with mapped fn and full saturated color

mapped fn randomizeWire objs = (objs.wirecolor = (clr = random black white ; clr.s = 255 ; clr))
randomizeWire selection