Drive Switch_RGBA via Scatter objects

Drive Switch_RGBA via Scatter objects

lizGYM66
Advocate Advocate
225 Views
3 Replies
Message 1 of 4

Drive Switch_RGBA via Scatter objects

lizGYM66
Advocate
Advocate

I have a bunch of objects in an Arnold Scatter and was hoping to drive random colors/textures to them. I was hoping connecting a user_data_int to the switch_rgba_index would work but it doesn't. I've tried all the other user_data nodes with no success. 

 

Is this not possible or am I missing something?

0 Likes
Accepted solutions (1)
226 Views
3 Replies
Replies (3)
Message 2 of 4

lee_griggs
Autodesk
Autodesk

Do any of the videos at the bottom of the Arnold Scatter page help? 

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 3 of 4

peter_horvath
Autodesk
Autodesk
Accepted solution

No index user data is exported from Arnold Scatter. But you can use a color_jitter shader to generate a random color or index that you can feed into the switch shader.

Set the Input color to black and set the Object Gain Max to the number of colors/textures you have in the switch, minus a small number (for example 6 - 0.001 = 5.999).

peter_horvath_0-1741427497675.png

 


// Peter Horvath
// C4DtoA developer
0 Likes
Message 4 of 4

lizGYM66
Advocate
Advocate

@lee_griggs I did look at those prior to posting but didn't see anything in them about what I was trying to do 🙂 

@peter_horvath I did try using a color jitter but not in that way. I'll give it a shot, thanks!

0 Likes