-
Please explain the expression below.(How it works)
https://www.youtube.com/watch?v=-GYwhfQJzHQ
The attached code is for the effect at 10th second where the words like 3d animator, illustrator, after effects etc pop out, move and go back.
Can anyone explain how it works? IF you have a different and simple to understand expression for the same please share.
The attenuation and elasticity are both set to value 5.
Regards.
a dropbox copy of the expression is here.https://dl.dropbox.com/u/59793114/Expression.txt
amorti = effect("AttŽnuation")(1);
freq = effect("ElasticitŽ")(1);if (numKeys > 1 && freq != 0 ){
if (nearestKey(time).index == 1) { value }
else {if (length(velocity) == 0) {
tempsClefProx = nearestKey(time).time;
if ( tempsClefProx <= time ) { tempsDebut = tempsClefProx }
else { tempsDebut = key(nearestKey(time).index-1).time }temps = time - tempsDebut;
spring = velocityAtTime(tempsDebut-thisComp.frameDuration) * ( .15/freq * Math.sin(freq * temps * 2 * Math.PI) / Math.exp( temps * amorti ) );
valueAtTime(tempsDebut) + spring;
}
else { value }
}
}
else { value }“Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.”
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.