Hi there,
I changed this from Dan’s expressions in the tutorial on randomizing motion:
you can set the timing by customizing the first 5 variables, expressed in seconds.
!!warning!!
The following expression can probably NOT be copied from the Email response,
go to the website and copy it from there.
It contains some characters (greater than, lesser than) that get screwed up in the email.
Add this expression to each opacity property:
//customize
ONmin = 1; //minimum time to stay on
ONmax = 2; //maximum time to stay on
OFFmin = .2; //minimum time to stay off
OFFmax = 1; //minimum time to stay off
fadeTime=0.5; //time to fade between on or off
i =1;
seed_random(i,true);
ONtime= random(OFFmin,OFFmax);
//initial conditions
OFFtime= ONtime;
LOOPtime= ONtime;
while (time >= LOOPtime){
i = i+2;
seed_random(i,true);
ONtime = LOOPtime;
OFFtime=ONtime+fadeTime+random(ONmin,ONmax);
seed_random(i+1,true);
LOOPtime=OFFtime+fadeTime+random(OFFmin,OFFmax);
}
if (time<OFFtime) {
linear(time,ONtime,ONtime+fadeTime,0,100);
} else {
linear(time,OFFtime,OFFtime+fadeTime,100,0);
}