/ 猿问

# 如何用AE来实现6种最基本的动效?

2018-11-14 19:15:54

# 如何用AE来实现6种最基本的动效

## 1 回答

jeck猫

1、基础动画

2、路径动画

3、修剪路径动画

4、融合动画

5、跟随动画

6、弹性动画——表达式的运用
A、Overshoot（过冲、夸张的）理解为“抖动”，如 果冻抖动的效果

freq = 3;

decay = 5;

n = 0;

if (numKeys > 0){

n = nearestKey(time).index;

if (key(n).time > time) n--;

}

if (n > 0){

t = time - key(n).time;

amp = velocityAtTime(key(n).time - .001);

w = freq*Math.PI*2;

value + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);

}else

value

B、Bounce 理解为“反弹”，如 皮球落地反弹的效果

v = 1900;

e = .7;

f = .5;

g = 5000;

nMax = 9;

tLaunch = 1;

vy = v*Math.sin(elev);

vx = v*Math.cos(elev);

if (time >= tLaunch){

t = time - tLaunch;

tCur = 0;

segDur = 2*vy/g;

tNext = segDur;

d = 0; // x distance traveled

nb = 0; // number of bounces

while (tNext < t && nb <= nMax){

d += vx*segDur;

vy *= e;

vx *= f;

segDur *= e;

tCur = tNext;

tNext += segDur;

nb++

}

if(nb <= nMax){

delta = t - tCur;

x = d + delta*vx;

y = delta*(vy - g*delta/2);

}else{

x = d;

y = 0;

}

value + [x,-y]

}else

value

C、弹性表达式，如拉橡皮筋

• 1 回答
• 0 关注
• 274 浏览

0/150