FORUMS: list search recent posts

# Fade In then Wiggle - Based on Layers InPoint

FAQ   •   VIEW ALL
 Fade In then Wiggle - Based on Layers InPoint on May 20, 2013 at 9:05:38 pm

Hello All,

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

wiggle(1,10)

Thanks

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

 Re: Fade In then Wiggle - Based on Layers InPointon May 20, 2013 at 9:22:41 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

 Re: Fade In then Wiggle - Based on Layers InPointon May 21, 2013 at 12:47:38 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?

 Re: Fade In then Wiggle - Based on Layers InPointon May 21, 2013 at 1:39:27 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