XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : random opacity

07-16-2008, 10:25 PM
Hello fellas, does anyone know how to write a Per Particle expression that makes the particles die randomly along a given lifespan range? I tried playing with the Random range in the Lifespan Mode but it only makes the particles die out all at once towards the end of the Lifespan you type in. I'm trying to make particles die out randomly from birth to lets say 3 seconds.

07-16-2008, 10:47 PM
Hey Sean.

What you can do is scroll down to the per particle array attributes, in the particleShape's attributes. You will see the lifeSpanPP is grey. right click and choose "creation expression"

Type in something like this:

particleShape1.lifespanPP = rand(.1,3);

where .1 is your min value, and 3 is your max value in this example.


07-17-2008, 02:36 PM
Hey thanks, Ilan. It worked. :)

Hope you have a good day.


07-17-2008, 04:46 PM
Awesome! Always happy to help out!


CGTalk Moderation
07-17-2008, 04:46 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.