Return-Path: Received: from mail-wi0-f169.google.com ([209.85.212.169] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5227721 for AE-List@media-motion.tv; Wed, 25 Sep 2013 11:40:41 +0200 Received: by mail-wi0-f169.google.com with SMTP id hj3so4921846wib.0 for ; Wed, 25 Sep 2013 02:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lHKjP7rCYM68z5wJQ1pa5EiPc+RzYTeacKVPZOhHUyE=; b=IdUYnCDXy5wJWd6ACuYJYHoGgToGtkgZNfz9GkeQK6EbeU+8bKVOdAKt74R9Eyhc/+ ihUYoNaR9xrNpKpeiNzBoYzZ9nOu4I8XldIa6AtjEWm115RIYkHkFU3PfMOVV09eMlFx 8wAL2KfG+mQ3Bl8pZqV9VTqlqogNv5ZfpiS+G6AwUvF2OQXxkXYHa86Dk05mPh0kKsun myO0nfRfNt0SZWaDAVQzCwQAVZZIrvzHPmyulqXtUooIEYQxSWJHH1VAXz829jb5D3fa /+XO951XqULzZ3x3eR1uh8fLNJsUfOlCA054rpFfY6tzQuPXGZcIOC9bITSl3BOXIRAv 7BNA== MIME-Version: 1.0 X-Received: by 10.180.79.163 with SMTP id k3mr6372979wix.25.1380102052367; Wed, 25 Sep 2013 02:40:52 -0700 (PDT) Received: by 10.217.7.71 with HTTP; Wed, 25 Sep 2013 02:40:52 -0700 (PDT) Date: Wed, 25 Sep 2013 10:40:52 +0100 Message-ID: Subject: Inertial bounce expression keeps being disabled randomly... From: D To: After Effects Mail List Content-Type: multipart/alternative; boundary=f46d043d655795d2d104e7320c21 --f46d043d655795d2d104e7320c21 Content-Type: text/plain; charset=ISO-8859-1 Hi The expression I'm using looks like this: amp = .1; freq = 2.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} It works most of the time then will randomly get disabled across lots of layers and will not allow me to re-enable until I've restarted AE (v5.5). This is the error: -- After Effects warning: invalid numeric result (divide by zero?) Expression disabled. Error occurred at line 10. Comp: 'XXX' Layer 17 ('XXX') Property: 'Scale' -- I have no real knowledge of how expression code works. I cut and paste when I use them. The project is 4 minutes long and the expression occurs across many comps and typically as the deadline approaches the error is now cropping up often. Any help appreciated. Thanks. --f46d043d655795d2d104e7320c21 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi

The expression I'm using l= ooks like this:

amp =3D .1;

= freq =3D 2.0;

= decay =3D 12.0;

= n =3D 0;

= if (numKeys > 0){ n =3D nearestKey(time).index;

= if (key(n).time > time){ n--;

= }} 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.frameDuration/= 10);

= value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);

= }else{value}


It works most of the time then will randomly get disabled across lots of la= yers and will not allow me to re-enable until I've restarted AE (v5.5).= This is the error:


--


After Effects warning: invalid numeric result (divide by zero?)

Expressi= on disabled.


Error occurred at line 10.

Comp: 'XXX'

Layer 17 ('XXX')

Property: 'Scale'


--


I have no real knowledge of how expression code works. I cut = and paste when I use them. The project is 4 minutes long and the expression= occurs across many comps and typically as the deadline approaches the erro= r is now cropping up often.=A0Any help appreciated.

=

Thanks.

--f46d043d655795d2d104e7320c21--