Activity › Forums › Adobe After Effects Expressions › Fade out at the end of comp
-
Fade out at the end of comp
Posted by Honza Ondračka on December 8, 2016 at 11:34 amHi,
I’m trying to add fade out to one of my effects to the end of the composition. I will use it multiple times so it would be impractical to do it manually. Times will vary.
How to do it using expressions?
Thanks!
Dan Ebberts replied 9 years, 6 months ago 3 Members · 10 Replies -
10 Replies
-
Honza Ondračka
December 9, 2016 at 12:20 amWell, it’s actually precomposition. It includes many effects. It’s basically logo with audio spectrum.
Honza
-
Dan Ebberts
December 9, 2016 at 12:22 amSo you want to fade the precomp layer’s opacity at the end of the precomp, or at the end of the master comp?
Dan
-
Honza Ondračka
December 9, 2016 at 12:23 amAt the end of master comp. I will be changing times of comp for different songs so it’s impractical to do it manually using key frames.
-
Dan Ebberts
December 9, 2016 at 12:25 amLike this then, I think:
fadeTime = 1; // fade out time (seconds)
ease(time,thisComp.duration-fadeTime,thisComp.duration,value,0)Dan
-
Honza Ondračka
December 9, 2016 at 12:46 amThank you.
May I ask you where tu put that code? I only know how to put it to effects not compositions.
Thanks!
-
Dan Ebberts
December 9, 2016 at 12:52 amYou would apply it to the opacity property of the precomp layer in the main comp.
Dan
-
Bryan Woods
January 14, 2017 at 12:12 amI came across this and I wanted to use it for a shape layer, but apparently there’s no such thing as thisLayer.duration? What is the equivalent to get this code to work for a shape layer?
-
Dan Ebberts
January 14, 2017 at 12:36 amThis should work:
fadeTime = 1; // fade out time (seconds)
ease(time,outPoint-fadeTime,outPoint,value,0)Dan
Reply to this Discussion! Login or Sign Up