FORUMS TUTORIALS FEATURES VIDEOS PODCASTS EVENTS SERVICES NEWSLETTER NEWS BLOGS
 ADOBE AFTER EFFECTS: Home Forum Basics Expressions Tutorials Podcasts AE Techniques Creative Cloud Debate FAQ

# Expression for Wiggle only horizontal & uneven

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
 Expression for Wiggle only horizontal & uneven by Areful Eeslam on May 26, 2012 at 11:46:03 am

HI, i was wondering what would be the expression for wiggling only horizontal perspective. Imagine a camera is panning or shaking left & right very fast to create a dramatic effect but not like earthquake and the velocity is uneven but smooth.

Hope someone can help.

Regards

 Re: Expression for Wiggle only horizontal & unevenby Dan Ebberts on May 26, 2012 at 6:18:17 pm

Have you tried something like this:

amp = 15;
freq = 1;
w = wiggle(freq,amp);
[w[0],value[1],value[2]]

Dan

 Re: Expression for Wiggle only horizontal & unevenby Areful Eeslam on May 26, 2012 at 6:55:41 pm

Hi, thanks for reply. But the expression doesn't work.

Giving the following error!

Please let me know if im doing anything wrong.

Regards

 Re: Expression for Wiggle only horizontal & unevenby Dan Ebberts on May 26, 2012 at 6:58:23 pm

Sorry, I thought you were going to apply it to a camera or a 3D layer. Try it this way:

amp = 15;
freq = 1;
w = wiggle(freq,amp);
[w[0],value[1]]

Dan

 Re: Expression for Wiggle only horizontal & unevenby Areful Eeslam on May 27, 2012 at 7:52:48 pm

Thanks for the reply once again. It's works but it's very slow, how do i increase the speed to make it very faster like earthquake but not exactly like earthquake if u know what i mean.

Regards

 Re: Expression for Wiggle only horizontal & unevenby Areful Eeslam on May 27, 2012 at 7:57:20 pm

Please dont bother i got by right by chaining the value.

amp = 40;
freq = 10;
w = wiggle(freq,amp);
[w[0],value[1]]

works for me fine.

Thanks a lot for the help.

 Re: Expression for Wiggle only horizontal & unevenby Areful Eeslam on May 27, 2012 at 8:07:36 pm

Hello again, im stuck with another problem, how do i keyframe the expression values (to increase the value gradually), the expression slider is not working & im sure im doing something wrong. Will you help me out here.

Regards

 Re: Expression for Wiggle only horizontal & unevenby Dan Ebberts on May 27, 2012 at 8:52:36 pm

Keyframing a slider for amplitude should work fine. Frequency is a different story altogether. Is that what you're trying to do?

amp = effect("Slider Control")("Slider");
freq = 10;
w = wiggle(freq,amp);
[w[0],value[1]]

Dan

 Re: Expression for Wiggle only horizontal & unevenby Areful Eeslam on May 28, 2012 at 10:18:29 am

No actually i did a silly mistake. I was suppose to pickwhip to slider in the value which is amp = slider, but i accidentally removed the (=) & getting error. It was a minor thing when i made it again from the scratch it worked. Anyways thanks for your help again Dan i really appreciate it.

Regards
Areful Eeslam