ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

How to link easeIn and easeOut in an expression?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ale Valen
How to link easeIn and easeOut in an expression?
on Jan 6, 2017 at 5:10:19 pm

Hi, I'm trying to figure out how to add 'easeOut' to this expression. I guess it's obvious , but I'm not sure about the correct syntax.
In an attempt I managed to smooth the In and Out of the wiggle, but the wiggle was so "weak", surely it was not right.

If anyone could suggest a solution, this is the expression without 'easeOut':

timeToStart = 1.0;
timeToStop = 4.0;
if ((time > timeToStart) && (time &lt; timeToStop))
{
transitionDur = 1.0;
freq = 10.0;
maxAmount = 50.0;

amount = easeIn(time, timeToStart, timeToStart+transitionDur, 0, maxAmount);
wiggle(freq, amount);
}
else
{
value;
}


Return to posts index

Dan Ebberts
Re: How to link easeIn and easeOut in an expression?
on Jan 6, 2017 at 6:43:15 pm

I think you're looking for something like this:


timeToStart = 1.0;
timeToStop = 4.0;
if ((time > timeToStart) && (time < timeToStop)){
transitionDur = 1.0;
freq = 10.0;
maxAmount = 50.0;
if (time < (timeToStart+timeToStop)/2)
amount = easeIn(time, timeToStart, timeToStart+transitionDur, 0, maxAmount)
else
amount = easeOut(time, timeToStop-transitionDur, timeToStop, maxAmount, 0);
wiggle(freq, amount);
}else{
value;
}



Dan



Return to posts index

Ale Valen
Re: How to link easeIn and easeOut in an expression?
on Jan 7, 2017 at 5:59:59 am

Thank you, Dan, it is.

I was doing it in the wrong way with syntax, it is totally different from I what was trying.
I hope to understand the expression at all for future references.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]