Mailing List AE-List@media-motion.tv ? Message #55049
From: Mathias Möhl <AE-List@media-motion.tv>
Subject: Re: [AE] camera shake
Date: Fri, 5 Sep 2014 09:14:03 +0200
To: After List <AE-List@media-motion.tv>
I think it should also work with separated dimensions.
But note that when you separate dimensions, all expressions are deleted so you have to reapply the expression again (to each dimension separately).

Cheers,
Mathias



mamoworld.com
simplify your cgi

Dr. Mathias Möhl
Marlow 52 , 18551 Sagard, Germany
Phone +49 (0)38302 - 88 75 61


On 22 Aug 2014, at 18:00, Daniel Velez <AE-List@media-motion.tv> 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 = 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);

 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster