ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Fade In/Out & Opacity Expression

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Jeff Horowitz
Fade In/Out & Opacity Expression
on May 20, 2014 at 5:23:47 pm

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


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]