Created
May 13, 2019 14:28
-
-
Save nicollasfeitosa/449c1fe2edd05a78a62e20bb9f048b1a to your computer and use it in GitHub Desktop.
Expressões After Effects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSIÇÃO - ELÁSTICO 01 [3 frames] | |
n = 0; | |
if (numKeys > 0){ | |
n = nearestKey(time).index; | |
if (key(n).time > time){ | |
n--; | |
} | |
} | |
if (n == 0){ | |
t = 0; | |
}else{ | |
t = time - key(n).time; | |
} | |
if (n > 0){ | |
v = velocityAtTime(key(n).time - thisComp.frameDuration/10); | |
amp = 3; | |
freq = 2.0; | |
decay = 3.0; | |
value + (v/100)*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); | |
}else{ | |
value; | |
} | |
POSIÇÃO - ELÁSTICO 02 [1 frame] | |
n = 0; | |
if (numKeys > 0){ | |
n = nearestKey(time).index; | |
if (key(n).time > time){ | |
n--; | |
} | |
} | |
if (n == 0){ | |
t = 0; | |
}else{ | |
t = time - key(n).time; | |
} | |
if (n > 0){ | |
v = velocityAtTime(key(n).time - thisComp.frameDuration/10); | |
amp = .02; | |
freq = 3.0; | |
decay = 5.0; | |
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); | |
}else{ | |
value; | |
} | |
ESCALA [3 frames] | |
n = 0; | |
if (numKeys > 0) | |
{n = nearestKey(time).index;if (key(n).time > time){n--;}} | |
if (n == 0) {t = 0;} else {t = time - key(n).time;} | |
if (n > 0){v = velocityAtTime(key(n).time - thisComp.frameDuration/10); | |
amp = 8; | |
freq = 2.0; | |
decay = 3.0; | |
value + (v/100)*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);}else{value;} | |
ROTAÇÃO [1 frame] | |
n = 0; | |
if (numKeys > 0) { | |
n = nearestKey(time).index; | |
if (key(n).time > time){ | |
n--; | |
} | |
} | |
if (n == 0) { | |
t = 0; | |
} else { | |
t = time - key(n).time; | |
} | |
if (n > 0){ | |
v = velocityAtTime(key(n).time - thisComp.frameDuration/10); | |
amp = 8; | |
freq = 2.0; | |
decay = 3.0; | |
value + (v/100)*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); | |
}else{ | |
value; | |
} | |
GELATINA [Aplicar na ESCALA da pré-composição] | |
freq = 2; | |
amplitude = 40; | |
decay = 1.0; | |
t = time - inPoint; | |
x = scale[0] + amplitude*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); | |
y = (1/x)*10000; | |
[x,y] | |
wiggle(frequencia,movimento) x x | |
ELASTIC NORMAL | |
n = 0; | |
if (numKeys > 0) | |
{n = nearestKey(time).index;if (key(n).time > time){n--;}} | |
if (n == 0) {t = 0;} else {t = time - key(n).time;} | |
if (n > 0){v = velocityAtTime(key(n).time - thisComp.frameDuration/10); | |
amp = 8; | |
freq = 2.0; | |
decay = 3.0; | |
value + (v/100)*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);}else{value;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment