# How do I use "VrayMultiSubTex" with Particles to add 2 different colors to them?

**URL:** <https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105>\
**Category:** Issues\
**Created:** [August 30, 2015, 3:38pm UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105 "2015-08-30T15:38:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_M](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Alex\_M](https://forums.chaos.com/u/Alex_M)\
**Post date:** [August 30, 2015, 3:38pm UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/1 "2015-08-30T15:38:16Z")

</div>

I’ve scattered some objects onto another object with Particle Flow and the “Vray Instancer” object. Now I want each particle to have either blue or red color randomly so I use “VrayMultiSubTex” map in the diffuse slot in the material. However, I can’t seem to find out how to make the particles receive one of these 2 colors randomly. In the “Get ID From:” parameter of “VrayMultiSubTex” I chose “Random by Particle ID” but all my particles render red.

Please check the attached screenshot:

 ![vray_particles.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/1/2/12721efcccaa70df099810e1cdf798b52216d74f.jpeg)

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [August 31, 2015, 9:35am UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/2 "2015-08-31T09:35:27Z")

</div>

It works fine for me \>

Can you try to add a few more IDs to the V-Ray MultisubTex map ?  
Which V-Ray version is that?

 ![2015-08-31 12_33_37}.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/a/7/a7b63b21fdb44d3869733b24d0bda93f5f4e6a44.jpeg)

---

<div class="post-metadata">

**Author:** ![Alex\_M](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Alex\_M](https://forums.chaos.com/u/Alex_M)\
**Post date:** [August 31, 2015, 11:39am UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/3 "2015-08-31T11:39:46Z")

</div>

I just tried but it still doesn’t apply the colors. Vray version is 3.20.03. Can you check the new screenshot and see if I’m missing something?

 ![pf_test.jpg](https://europe1.discourse-cdn.com/chaosprd/original/3X/9/5/95657e5a4c198bba0da300e52e295ec0d3324388.jpeg)

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [August 31, 2015, 12:35pm UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/4 "2015-08-31T12:35:41Z")

</div>

Please find attached my Max file below

Can you perform a test render and see if you are getting the same result.  
[Instancer\_RandomColor.zip](https://forums.chaos.com/uploads/short-url/uPXd4x4av09JbKASSNhRambW1uW.zip) (24.7 KB)

---

<div class="post-metadata">

**Author:** ![Alex\_M](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Alex\_M](https://forums.chaos.com/u/Alex_M)\
**Post date:** [August 31, 2015, 3:51pm UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/5 "2015-08-31T15:51:31Z")

</div>

Thanks, it worked! I realized that I’ve been scattering my object directly from the PF Source with the “Shape Instance” operator instead of doing it with the Vray Instancer object. 😄

---

<div class="post-metadata">

**Author:** ![tashko.zashev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/tashko.zashev/32/275280_2.png) [@tashko.zashev](https://forums.chaos.com/u/tashko.zashev)\
**Post date:** [September 1, 2015, 5:33am UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/6 "2015-09-01T05:33:14Z")

</div>

Glad to hear that.

---

<div class="post-metadata">

**Author:** ![Deflaminis](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/deflaminis/32/22216_2.png) [@Deflaminis](https://forums.chaos.com/u/Deflaminis)\
**Post date:** [September 2, 2015, 4:29am UTC](https://forums.chaos.com/t/how-do-i-use-vraymultisubtex-with-particles-to-add-2-different-colors-to-them/55105/7 "2015-09-02T04:29:56Z")

</div>

Wow this is great, how did I miss this? Very cool.
