-
Increasing and decreasing opacity based on growing number from 0-1
Hi!
I have an expression on the opacity of a solid.
Here is the expression I have so far:life = 5;
offset = 0;
SeedRandom(index,true);
pause = random(life+offset);
if(time < pause)
age = 0;
else
age = (time-pause) % life;The variable \”age\” pauses at 0, increases, resets back to 0 when it reaches 1 and repeats the same thing again.
I\’m trying to increace the opacity from 0-100 as age inceases from 0-0.2 and for the opacity to decrease back from 100-0 from 0.8-1 (1 and 0 are the same as it loops back with the % sign)
Is this possibe and if so, how?Thanks in advance!