메뉴 건너뛰기

해원이세상

담아온 영상

강좌
2016.07.11 15:40

Bounce AE expression

조회 수 40 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
Extra Form
주소 https://vimeo.com/44007547

Inertial Bounce
can be put on the scale, position ... and creates this bounce as when a ball hit the ground

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/15);
amp = .05;
freq = 4;
decay = 8;
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
}else{
value;
}

Watch Out for some reason, the enter (=go to next line) are replaced by ? sign that is not understood by AE, so be sure to delete the ? mark to have the expression working

otherwise here is the a version without enter

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/15);amp = .05;freq = 4;decay = 8;value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);}else{value;}


List of Articles
번호 분류 제목 조회 수
5 강좌 2D Cloud Puff After Effects Shape Layer Tutorial 27
4 강좌 Tutorial Adobe After Effects: 2D Smoke/Clouds 127
» 강좌 Bounce AE expression 40
2 강좌 Windows Live Movie Maker: The User Interface 20
1 강좌 [C스토리38회] 이호선(한국노인상담센터장) - 부모가 알아야 할 세 가지 50
Board Pagination Prev 1 Next
/ 1
위로