Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Opacity fade in / out

  • Opacity fade in / out

    Posted by Olly Bea on November 29, 2010 at 12:16 pm

    Is there a expression so I don’t need to keyframe in a 10 frame opacity fade in / out which is controlled by the layers in / out point.

    What I am trying to achieve is that whenever I change the layers in / out point it will always fade in for 10 frames and fade out for 10 frames at the given start point / end point. I know its lazy but it sure would speed me up!

    Many thanks

    Olly

    Karl Dreyer replied 15 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Olly Bea

    November 29, 2010 at 12:45 pm

    Just found this, which is exactly what I need:

    fadeInTime = .5; // fade in time (seconds)
    fadeOutTime = .5;

    Math.min(linear(time,inPoint,inPoint + fadeInTime,0,100),linear(time,outPoint – fadeOutTime,outPoint,100,0))

    PERFECT!

  • Karl Dreyer

    December 9, 2010 at 9:16 am

    Hi, your solution sounds great – but is related to in / outpoint. I´d need this smooth changes whenever an object randomely meets a moving hotspot. Any idea how to start it independently from in / outpoint?

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