random color per brick

   7413   2   0
User Avatar
Member
1177 posts
Joined: April 2017
Offline
Hi!

I've created a brick pattern and I would like to give a random color per brick. I'm not sure how to give each brick its own “ID” so I can run a rand function on it.

Thanks for any help.

-Olivier

Attachments:
Herringbone_pattern_rand_colors.JPG (164.9 KB)

User Avatar
Member
9380 posts
Joined: July 2007
Offline
what is your brick?
packed prim? just use @primnum or @pointnum
or just bunch of primitives? use Connectivity SOP to get your id
or maybe make your id before you create bricks if your process allows for it
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
1177 posts
Joined: April 2017
Offline
Non packed.

Thanks tamte! Connectivity is what I needed.

-Olivier
  • Quick Links