-
random hold periods
i’m trying to create an expression that periodically turns the opacity of a layer to 100% but then holds that opacity value at 100 for a period of say, 10 frames of time. here’s what i’ve got so far…
x=random(50);
if(x>45){
value=100;
}else{
value=0;
}obviously that expression produces some chaotic results as a new random number for ‘x’ is created at every frame. so how can i create the hold? if anybody has an example or link to another post here that would be awesome!