-
Random light intensity between two values
Hi all,
I have a scene set up where i have a 3d light randomly flickering on the subject. I have used the “Let there be light” expression from https://www.motionscript.com.segMin = 1.0; //minimum segment duration
segMax = 1.5; //maximum segment duration
flickerDurMin = .5;
flickerDurMax = .8;end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
flickerDur = random(flickerDurMin,flickerDurMax);
if (time > end – flickerDur){
seedRandom(1,false);
random(100);
}else{
100
}I would like to be able to set the random light intensity between two specific amounts such as 80% and 100% intensity.
I don’t know much about expressions so any help would be really appreciated.