Hello,
I have the following script in the creation part of the Opacity PP attribute, the idea is that when each particle is created it will use this script to determine if the opacity of that particle will be 1 or 0.
The problem I am having is that the opacity of each particle does not remain constant and therefore the particles are all randomly changing between an opacity of 1 or 0 with every frame.
If there is a simple way of setting the opacity of random particles to either 1 or 0 then that would be very helpful!
Here is the creation opacityPP script:
float $randomNumberGen = rand(0,1);
if ($randomNumberGen > 0.1) {
particleShape1.opacityPP = 0;
}
else {
particleShape1.opacityPP = 1;
}