Creative Communities of the World Forums

The peer to peer support community for media production professionals.

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 am

    Hi,

    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
  • Dan Ebberts

    December 8, 2016 at 11:49 pm

    What type of effect?

    Dan

  • Honza Ondračka

    December 9, 2016 at 12:20 am

    Well, it’s actually precomposition. It includes many effects. It’s basically logo with audio spectrum.

    Honza

  • Dan Ebberts

    December 9, 2016 at 12:22 am

    So 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 am

    At 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 am

    Like 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 am

    Thank 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 am

    You would apply it to the opacity property of the precomp layer in the main comp.

    Dan

  • Honza Ondračka

    December 9, 2016 at 1:06 am

    Thanks! 🙂

  • Bryan Woods

    January 14, 2017 at 12:12 am

    I 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 am

    This should work:

    fadeTime = 1; // fade out time (seconds)
    ease(time,outPoint-fadeTime,outPoint,value,0)

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy