From: "Daniel Velez" Received: from mail-wi0-f177.google.com ([209.85.212.177] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5555181 for AE-List@media-motion.tv; Fri, 22 Aug 2014 18:00:49 +0200 Received: by mail-wi0-f177.google.com with SMTP id ho1so10114518wib.16 for ; Fri, 22 Aug 2014 09:00:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=ts9GIL9JR/fKblZFYeY+a4BILl7fN6igg5vZ5Qjyw6c=; b=Qr5aYtv0oz7n7fAvzqeekpvsb8kYCzfs1HejeQUVtpUYVypnjf0EDtsyAA09EQdB0F f4b7ZlukphZ8pBPi7Ond4PDBarsRlvsVpD0iqL+SuO1QN6Ajn9ZhZit/QdDtqA2mVZ/d GliFFsA212pc0jCkf6k7VkmnNm29ZeRpx1rU3r5vIrpm8t8fLDQyLzhKwAQ+PRiO6ZGB ynK+39Lgcuz67Ptdc+nvTuNlm4AC4bYbdUYmucL/PP02J/K+3naTGdXkgX6Wm8v2vJZs VgitxcXMs0mITV46BUx8E2cj5t0cLQhM8vhkxpAWoqnPX4sr8cBL+cGB8bpAoFn/n/WF sF6w== X-Received: by 10.195.11.234 with SMTP id el10mr6203791wjd.95.1408723249980; Fri, 22 Aug 2014 09:00:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.139.168 with HTTP; Fri, 22 Aug 2014 09:00:29 -0700 (PDT) Date: Fri, 22 Aug 2014 12:00:29 -0400 Message-ID: Subject: camera shake To: After Effects Mail List Content-Type: multipart/alternative; boundary=047d7b87375ce6ebd5050139f024 --047d7b87375ce6ebd5050139f024 Content-Type: text/plain; charset=UTF-8 I've found this expression for camera shake helpful (Dan Hibberts website) but once i separate the camera positions dimensions it stop working, is any way that this can be arrange so it works with separate positions keyframes? Thanks Dan freq = effect("Frequency")("Slider"); amp = effect("Amplitude")("Slider"); if (freq.numKeys > 0){ accum = 0; v0 = freq.valueAtTime(0); t0 = 0; i = 1; while (i <= freq.numKeys){ t = freq.key(i).time; if (t < time){ accum += (v0 + freq.key(i).value)*(t - t0)/2; v0 = freq.key(i).value; t0 = t; if (i == freq.numKeys){ accum += (time - t0)*v0; } }else{ accum += (freq + v0)*(time - t0)/2; break; } i++; } }else{ accum = freq*time; } wiggle(1,amp,1,.5,accum); --047d7b87375ce6ebd5050139f024 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've found this expression for camera shake helpful (D= an Hibberts website) but once i separate the camera positions dimensions it= stop working, is any way that this can be arrange so it works with separat= e positions keyframes?

Thanks

Dan


<= div>freq =3D = effect("Frequency")("Slider"); amp =3D effect("Amplitude")("Slider"); if (freq.numKeys > 0){ accum =3D 0; v0 =3D freq.valueAtTime(0); t0 =3D 0; i =3D 1; while (i <=3D freq.numKeys){ t =3D freq.key(i).time; if (t < time){ accum +=3D (v0 + freq.key(i).value)*(t - t0)/2; v0 =3D freq.key(i).value; t0 =3D t; if (i =3D=3D freq.numKeys){ accum +=3D (time - t0)*v0; } }else{ accum +=3D (freq + v0)*(time - t0)/2; break; } i++; }else{ accum =3D freq*time; } wiggle(1,amp,1,.5,accum);
--047d7b87375ce6ebd5050139f024--