lunes, 30 de mayo de 2011
jueves, 26 de mayo de 2011
Wiggle // Bounce // Rebotín
wAmp = 100; wFreq = 1; if (time < 0){ w = wiggle(thisComp.layer("WIGGLE").effect("wiggle_amount")("Slider"),thisComp.layer("WIGGLE").effect("wiggle_rate")("Slider"),1,1,-time); [valueAtTime(-time)[0],w[1]]; }else{ w = wiggle(thisComp.layer("WIGGLE").effect("wiggle_amount")("Slider"),thisComp.layer("WIGGLE").effect("wiggle_rate")("Slider")); 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 = .05; freq = 4.0; decay = 2.0; [w[0],w[1],value[1]] + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{ [w[0],w[1],value[1]]; } }
jueves, 5 de mayo de 2011
lunes, 2 de mayo de 2011
Suscribirse a:
Entradas (Atom)