From: "Phil Spitler" Received: from mail-pd0-f182.google.com ([209.85.192.182] verified) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP-TLS id 5564238 for AE-List@media-motion.tv; Thu, 04 Sep 2014 05:59:11 +0200 Received: by mail-pd0-f182.google.com with SMTP id fp1so12684934pdb.27 for ; Wed, 03 Sep 2014 20:59:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id; bh=UdLaqRlFgI+bqjiHY8ElKIlqVkicHe5kRuH3UBcFAo8=; b=ZKffck3Yt41WCTYF1DSkrYhTwmkt2CFiR0v/fsHDYm6TC0wcZF0Uoby3FXvIlJWJ0O tPOoGVj2cMeE5ml4FBb9S5EktPZDb7fZ7FaiqBEMdrhFyGBgqzY7KuakDzgGCJbyYF67 YgQ2Wr0cijgPPAFf8m217lXO+sxCUS4h0M+gDT064eETfbbcivKHwfJUT1zOWvYVd06k UtknS1cwGYIY7KAuFfvQ7T1Vy09Tat2f6sXhtgZeubxeGHkja3lwONyl5ojg6DbdrC7c cPk6IosrVSUjvU9tBo4JHpiZCwtrZclo4HGS1f+ziwaVbK/H3eWMPvGB1FRQtlUpTaSb nYzg== X-Gm-Message-State: ALoCoQljgwGHZRTsM4PZp8mg3K36LSf068eLTY2eSXKJiLbz39KZIYDkKoJV45wkQMXIf21WEvs2 X-Received: by 10.70.34.136 with SMTP id z8mr3632280pdi.39.1409803145527; Wed, 03 Sep 2014 20:59:05 -0700 (PDT) Return-Path: Received: from ?IPv6:2601:9:7b80:154f:c0d2:f509:abfa:8f7c? ([2601:9:7b80:154f:c0d2:f509:abfa:8f7c]) by mx.google.com with ESMTPSA id ou6sm319318pbb.88.2014.09.03.20.59.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 20:59:04 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1283) Content-Type: multipart/alternative; boundary="Apple-Mail=_2B4E30F6-9BEA-4AD6-8E65-0BCB396842AD" Subject: Re: [AE] camera shake Date: Wed, 3 Sep 2014 20:59:00 -0700 In-Reply-To: To: "After Effects Mail List" References: Message-Id: <91F8EAF3-8A7E-4EA0-9215-D945FBCF5D38@bonfirelabs.com> X-Mailer: Apple Mail (2.1283) --Apple-Mail=_2B4E30F6-9BEA-4AD6-8E65-0BCB396842AD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii When you say it stops working, does it error or does it just not shake? Phil Phil Spitler | Creative Technologist | Bonfire Labs | t : = 415.394.8200 m : 415.571.3139 Website | Facebook | LinkedIn On Aug 22, 2014, at 9:00 AM, Daniel Velez wrote: > 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? >=20 > Thanks >=20 > Dan >=20 >=20 > freq =3D effect("Frequency")("Slider"); > amp =3D effect("Amplitude")("Slider"); >=20 > 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); --Apple-Mail=_2B4E30F6-9BEA-4AD6-8E65-0BCB396842AD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii When = you say it stops working, does it error or does it just not = shake?

Phil



=
Phil Spitler  |  Creative = Technologist   |  Bonfire Labs  |  t : = 415.394.8200  m : 415.571.3139

Website | Facebook | 
=


On Aug 22, 2014, at 9:00 AM, Daniel Velez wrote:

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 =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);

= --Apple-Mail=_2B4E30F6-9BEA-4AD6-8E65-0BCB396842AD--