From the course: Houdini: Particles

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create Cd

Create Cd - Houdini Tutorial

From the course: Houdini: Particles

Start my 1-month free trial

Create Cd

- [Instructor] The next attribute we're going to create is CD, which we're gonna use as color data to eventually drive the parameter of a shader to be able to change the shader values per instance when we render. A very, very powerful technique in here. So, what we're gonna do is make another point file. I'm gonna call this create CD, wire that into our instance, make it green. Let's go inside here. Okay. So what we're gonna do is we're gonna use a modulo vop node, exact same thing we just did in code in the attribute wrangle. And we're gonna wire this in to the ID, and I'm gonna make this deviser before. So we'll get a zero, two, or three based on whatever the ID number is cause we're gonna use that to drive as switch, and we're gonna have four different input colors. And whatever this modulo result is based on the ID number, it'll switch to that color. So I'm gonna make a parameter. That parameter is going to be a color. I'm gonna call this color one, and then it's label will be…

Contents