Return-Path: Received: from mail-wi0-f171.google.com ([209.85.212.171] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5002657 for AE-List@media-motion.tv; Thu, 14 Mar 2013 01:48:55 +0100 Received: by mail-wi0-f171.google.com with SMTP id hn17so3302433wib.4 for ; Wed, 13 Mar 2013 17:55:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=ryvSXEHKPe3nNe8uLXwpyheXm6ZC0/1lEfqiSGZqKmY=; b=NBr+aXMeb35d6QHhY/FipRPbYMYyicjEI3o4ZZTfSAe96d2Ivy9+b2/fj8eczMRQff rE/X7goSyNrYJZFtl+aXXMm5vGyoUHbKq5auosdQl3tT3V9HY1MZtF9u84WBkoWNtnyI wAO/gAsOagmnf3+Dk1drSfsnOzRLI3haTKLzG6ZTVZE+heJBvsP3b4hackaXOJ+zLBd9 SPhuaRjlKA8l5XxhbZb6Ic/XeSsn2k6hgrwpsmw4LGtAnbJcP3oGyL0XVqGL9Hbn/Nyx Mxf0vK5WJRRZsmHen/6Z9iif0tob6VL+a6b14NtUoUzh3hK9VDlzgXkPbHhwd4hSWO40 AI8A== MIME-Version: 1.0 X-Received: by 10.194.133.198 with SMTP id pe6mr675717wjb.9.1363222557501; Wed, 13 Mar 2013 17:55:57 -0700 (PDT) Received: by 10.194.59.9 with HTTP; Wed, 13 Mar 2013 17:55:57 -0700 (PDT) Date: Wed, 13 Mar 2013 20:55:57 -0400 Message-ID: Subject: Divide by Zero Errors... From: Andrew Embury To: After Effects Mail List Content-Type: multipart/alternative; boundary=089e01175f7d4a305b04d7d7fcef --089e01175f7d4a305b04d7d7fcef Content-Type: text/plain; charset=ISO-8859-1 Hey guys/ gals! Quick question.... Whilst animating in AE tonight I was using the following expression: amp = .03; freq = 4.0; decay = 12.0; 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); value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{value} Never ever have I since have encountered so many "Divide by Zero" errors in my life with AE. Currently working with CS6 and I am applying this expression to Scale, Position, and Rotation. Any help would be greatly appreciated. Thank you. - Andrew --089e01175f7d4a305b04d7d7fcef Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hey guys/ gals!

Quick question...= .

Whilst animating in AE tonight I was= using the following expression:

amp =3D .03;
freq =3D 4.0;
decay =3D 12.0;
n = =3D 0;
if (numKeys > 0){
n =3D nearestKey(time).inde= x;
if (key(n).time > time){
n--;
}}
<= div>if (n =3D=3D 0){ t =3D 0;
}else{
t =3D time - key(n).time;
}
if (n= > 0){
v =3D velocityAtTime(key(n).time - thisComp.frameDurati= on/10);
value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t= );
}else{value}


Never ever = have I since have encountered so many "Divide by Zero" errors in = my life with AE.

Currently working wit= h CS6 and I am applying this expression to Scale, Position, and Rotation.

Any help would be greatly appreciated.

Thank you.

- Andrew
--089e01175f7d4a305b04d7d7fcef--