-
Multiple Expressions on one attribute
Hi Legends.
Im sure this has been asked before, but I cant find anything specific.
I need two Opacity expressions on the one layer. The second expressions is decided from the first.See below. The first is using a Comp marker to decide the time of the transition off (opacity)
The bottom line is using a slider to determine if this layer can be seen at all. (using opacity)
Now, the bottom line is overriding the first calculation.
Any help appreciated!holdTime = thisComp.marker.key(1).time-1.8;
m1 = 1; // 1st hold marker
m2 = 2; // 2nd hold markerp = thisLayer;
t1 = p.marker.key(m1).time;
t2 = t1 + holdTime;if (time < t1) { t = time }
else if (time < t2) { t = linear(time,t1,t2,t1,p.marker.key(m2).time) }
else { t = p.marker.key(m2).time + (time – t2) }valueAtTime(t);
if(thisComp.layer(“Control Panel”).effect(“NUMBER OF LINES 1, 2 or 3”)(“Slider”) == 3) value else 0;