Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Fade out over 6 frames before Comp Marker

  • Fade out over 6 frames before Comp Marker

    Posted by Chris Craig on August 19, 2008 at 5:59 am

    Hi guys

    I have managed to manipulate an expression that allows me to fade out the layer, 6 frames before the comp marker (1). Its a little dusty, as it was put together from looking at other scripts and i think it was a fluke that it worked, as i need to change the duration of the fade and its not working.

    Can someone please look at it and tell me where im going wrong.

    fadeFrames = 8;

    fadeOutDuration = fadeFrames*thisComp.frameDuration;;
    var markerTime = thisComp.marker.key(“1”).time;
    fadeOutOpacity = linear(time, inPoint-fadeOutDuration-0.001, markerTime, 100, 0);
    fadeOutOpacity*25

    Thanks
    Chris

    Dan Ebberts
    replied 17 years, 8 months ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    August 19, 2008 at 1:23 pm

    This should work:

    fadeFrames = 8;

    fadeOutDuration = fadeFrames*thisComp.frameDuration;;
    var markerTime = thisComp.marker.key(“1”).time;
    linear(time, markerTime-fadeOutDuration, markerTime, 100, 0);

    Dan

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