Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Fade In then Wiggle – Based on Layers InPoint

  • Fade In then Wiggle – Based on Layers InPoint

    Posted by Victor Nash on May 20, 2013 at 9:05 pm

    Hello All,

    Im looking for an expression that fades a layer in then wiggles on based on the original value.

    wiggle(1,10)
    I was having difficulty adding this wiggle into the FadeIn expression

    Thanks

    fadeInTime = .5;
    fadeOutTime = .5;
    Math.min(linear(time,inPoint,inPoint + fadeInTime,0,value),linear(time,outPoint - fadeOutTime,outPoint,value,0))

    Victor Nash replied 12 years, 11 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    May 20, 2013 at 9:22 pm

    This is one way:


    amp = 10;
    fadeInTime = .5;
    fadeOutTime = .5;
    if (time < (inPoint+outPoint)/2)
    a = linear(time,inPoint,inPoint+fadeInTime,0,amp)
    else
    a = linear(time,outPoint-fadeOutTime,outPoint,amp,0);
    wiggle(1,a);

    Dan

  • Victor Nash

    May 21, 2013 at 12:47 pm

    Thank You Dan.

    I noticed the original value I set the opacity to starts at the inpoint and outpoint but it wasn’t fading in or out?

  • Dan Ebberts

    May 21, 2013 at 1:39 pm

    Sorry, I misunderstood what you were after. Try it this way:


    w = wiggle(1,10);
    fadeInTime = .5;
    fadeOutTime = .5;
    if (time < (inPoint+outPoint)/2)
    linear(time,inPoint,inPoint+fadeInTime,0,w)
    else
    linear(time,outPoint-fadeOutTime,outPoint,w,0);

    Dan

  • Victor Nash

    May 21, 2013 at 2:00 pm

    Thank You Dan,
    I’ve learned so much over the years from you. Thanks for being such an asset to this community.

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