- 27 Nov 2009
- Category: Design
Loop Wiggle Wiggle the position of a layer Blink blinkSpeed =10; http://www.mographwiki.net/After_Effects_expressions_libraryObject bouncing on a floorThis will make your layer/object bounce along an imaginary ‘floor’. Paste it into the ‘position’ attribute for your layer. Vy0 = 500; //initial y velocity (pixels/second)
Vx0 = 100; // initial x velocity (pixels/second)
g = 2500; // gravity (pixels/second/second)
floor = 400;
e = .85; //elasticity
b = floor - position[1];
h = b + Vy0*Vy0/(2*g);
T = Vy0/g + Math.sqrt(2*h/g);
if (time < T){
y = Vy0*time - g*time*time/2 + b;
}else{
Vy = -(Vy0 - g*T);
while (true){
Vy *= e;
t = T;
T += 2*Vy/g;
if (time < T){
t = time - t;
y = Vy*t - g*t*t/2;
break;
}else if (T - t < thisComp.frameDuration){
y = 0;
break;
}
}
}
[position[0] + Vx0*time, floor - y]
Bouncy scale ‘IN’Apply this expression to the ‘scale’ parameter of your layer. k=16; // final scale a=5; // how quickly the bounce ends b=20; // how many bounces it'll do (that is, the bounce speed) x=k*(1-Math.exp(-a*time)*Math.cos(b*time)); [x,x] http://www.motionscript.com/design-guide/toc.html
http://www.colinbraley.com/repel_expressions_tutorial.html Objects repel each other
Jitter
Ed Ruscha’s painting English Drama (left). A horizontally set gothic font has gravitas. When it is set at an uplifting angle, it is becomes an advert. It leaves behind religious text, formal documents and invitations. It is now a commercial item to be shown off with an added air of entertainment. A gothic font at an angle could be found on a cheap flyer, painted on a fish and chip placard or outside a tourist destination. Drama (written in the English language) is not enough. British drama is not enough, it must be English! I am already thinking of Stratford Upon Avon.
|