random color per brick

   5979   2   0
User Avatar
Member
1007 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
8539 posts
Joined: July 2007
Online
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
FX Supervisor
Method Studios, NY
User Avatar
Member
1007 posts
Joined: April 2017
Offline
Non packed.

Thanks tamte! Connectivity is what I needed.

-Olivier
  • Quick Links