Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Maya Basics & Newbie Lounge (https://simplymaya.com/forum/forumdisplay.php?f=31)
-   -   rgbPP expression (https://simplymaya.com/forum/showthread.php?t=14573)

alexkemp 03-12-2004 09:38 PM

rgbPP expression
 
Hello,

Can anyone help me to write an expression to color my particles.
I'm doing the free g n o m o n video tutorial about "Colission emission" (see site g n o m o n)


In the video they write an expression , but I can not see clearly what the expression is (the quality of the video is not the best)

Many thanks

Dann 03-12-2004 09:56 PM

for red particles:
rgbPP = <<1,0,0>>

for green particles:
rgbPP = <<0,1,0>>

for blue particles:
rgbPP = <<0,0,1>>

for random colored particles:
int $color = rand (0,1);
rgbPP = <<$color ,$color ,$color >>

alexkemp 04-12-2004 06:26 PM

Thanks Dann !


All times are GMT. The time now is 08:08 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018