-
How to turn off and on an expression randomly
Hi there guys , I’m trying to make a 3d object to scale up and down to the beats of a music with this expression:
and it is working good so far, I just need for the expression to to turn off and on randomly for a couple of seconds.
Like 3s on and and 5s off. when is off it will stay at a regular size which is 100 and on it ill be scaling at the beats. I tried some random expression but the change is too jerky . Any help please . Thanks in advance.minAudio = 0;
maxAudio = 100;
minStretch = 100;
maxStretch = 125;
audioLev = thisComp.layer("Sound Key 2").effect("Sound Keys")("Output 1");
s = linear(audioLev, minAudio, maxAudio, minStretch, maxStretch);
[s,s,s] ;