ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Ae wiggle expression jumps after start from specific time.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nuwan Thilina
Ae wiggle expression jumps after start from specific time.
on Nov 27, 2016 at 8:57:39 am

Hello there, I have added following code to my shape layer.
This layer is animated in first 2 seconds.

So I wanted to it to wiggle after a certain time.
Thanks to CC, I have founded the codes that work.

But when switching animation from key frames to wiggle there is a jump.
wiggle start with separate value.

How to make this transition smooth?

Your help will be highly appreciated!

timeToStart = 3;
if (time > timeToStart)
{
w = wiggle(1.5,30);
[w[0],value[1]]
}
else
{
value;
}


Return to posts index

Xavier Gomez
Re: Ae wiggle expression jumps after start from specific time.
on Nov 27, 2016 at 3:48:16 pm

You can transition smoothly between the two by using a linear or ease function:

timeToStart = 3;
transitionDur = 1;
freq = 1.5;
maxAmount = 30;

amount = easeIn(time, timeToStart, timeToStart+transitionDur, 0, maxAmount);
[wiggle(freq, amount)[0], value[1]];


Note: you could also use, with the eact same result:

timeToStart = 3;
transitionDur = 1;
freq = 1.5;
maxAmount = 30;
x1 = value[0];
x2 = wiggle(freq, maxAmount)[0];
[easeIn(time, timeToStart, timeToStart+transitionDur, x1, x2), value[1]];


Xavier


Return to posts index

Nuwan Thilina
Re: Ae wiggle expression jumps after start from specific time.
on Nov 27, 2016 at 3:58:18 pm

Wow...! This is exactly what I wanted. Spent the whole day trying to figure this out.
Thank you so much. You saved my tomorrow. ?

Thanks again,
Nuwan T.


Return to posts index


Nuwan Thilina
Re: Ae wiggle expression jumps after start from specific time.
on Nov 27, 2016 at 4:30:44 pm

One question,

Can you let me know how to enable both axis(x,y) to animate (wiggle)
in above expression.

Thanks.


Return to posts index

Nuwan Thilina
Re: Ae wiggle expression jumps after start from specific time.
on Nov 27, 2016 at 4:44:00 pm

My bad Just figured it out.
Posted the code here. So it may help other users.

timeToStart = 2.5;
transitionDur = 1;
freq = 1.5;
maxAmount = 50;

amount = easeIn(time, timeToStart, timeToStart+transitionDur, 0, maxAmount);
wiggle(freq, amount);


Return to posts index

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