Color each copy differently, according to ramp colors

   7895   3   1
User Avatar
Member
41 posts
Joined: Feb. 2006
Offline
Hello,

I saw this in a tutorial some time ago, and I can't remember how to do it.

I have a structure with many pieces, made with the copy SOP. I want to color each copy randomly, based on a color ramp set to constant interpolation. I want to use a ramp, so I can have some colors appearing more often than others (these colors will have a larger range in the ramp).

Any ideas?
User Avatar
Member
918 posts
Joined: March 2014
Offline
Since I like to have a little explanation for attached files :-) here we go:

Use an attributerandomize SOP to create an attribute with randomization on your points before copying and set the ‘use template point attribs’ on the copy SOP to propagate the attribute to your copies. After the copy SOP use a color SOP set to ‘ramp from attribute’ with the attribute name from the attributerandomize SOP.

I hope this is what you were looking for.

Cheers,
Andy

Attachments:
color_by_ramp_from_attribute.hipnc (94.4 KB)

User Avatar
Member
41 posts
Joined: Feb. 2006
Offline
Yes, this is it! Thank you very much!
User Avatar
Member
22 posts
Joined: Sept. 2015
Offline
whats does one do when there is no second input into the copy sop? something with $CY?
  • Quick Links