Question
Mutually exclusive layers
Hey guys!
I need to do something for a project at work, where layers pop in and out randomly and the user needs to pause the video at the right time to win something.
I'm using this beautiful expression by Dan Ebberts:
fadeTime = framesToTime(4);
curState = wiggle(1,100) < 100;
t = thisComp.frameDuration
while (curState == wiggle(1,100,1,0.5,time-t) < 100){
t += thisComp.frameDuration;
}
tt = time -t;
if (curState){
linear(time,tt,tt+fadeTime,100,0);
}else{
linear(time,tt,tt+fadeTime,0,100);
}It works, the problem is, I need it on multiple layers and I need control over how many of them are displayed at the same time, because for this to work, they can't overlap.
Is there a good way to do this?
