-
Fade In/Out & Opacity Expression
So I have two layers:
Layer 1: text
Layer 2: shape layer(text box)On Layer 2 I’ve added this expression to its opacity to tell the text box to disappear in the event that there is no text:
thisComp.layer(1).text.sourceText.length>0?75:0
I also want to add this expression to Layer 2 to tell the text box to fade in and out:
fadeInTime = .5;
fadeOutTime = .5;Math.min(linear(time,inPoint,inPoint + fadeInTime,0,75),linear(time,outPoint – fadeOutTime,outPoint,75,0))
HOW CAN I USE BOTH EXPRESSIONS ON THE OPACITY OF THE SAME LAYER, SO I CAN HAVE THE TEXT BOX FADE IN AND OUT AND ALSO NOT APPEAR WHEN THERE’S NO TEXT?
JAH
