After Effects – Wiggle X or Y Axis Only – 5 Easy Expressions

Posted on Wednesday, 13 May 2015
Need an Animated Whiteboard Video?
Glasgow City of Science Blog features Sundstedt Animation Video

Wiggle X or Y axis only in After Effects CC

This guide has everything you need to know about simple scripts to wiggle in X or Y direction only in Adobe After Effects. Keep reading…

“It is without a doubt that I can say Anders is a unique animator because his goal is not to finish a project and move on, it’s to make something he enjoys to make and has pride in and the final product shows us his love of animation.”
Jeff Rolfzen
The Lark and The Loon


What is X axis and Y axis? Let’s look at the X and Y axis example image below. The red axis below is the X axis. The green axis below is the Y axis. Another name is an X and Y graph:

wiggle-x-or-y-axis-only

Let’s start with how to wiggle only in the X axis first:

The Easy Expression to add to Position, for wiggle in X axis only (the red axis above) is:

x = transform.position[0];
y = transform.position[1];
w = wiggle(2,100);
[w[0],y];

In the example expression above, 2 is the amount on wiggles per second, 100 is the maximum wiggle value.

Here are some alternative, tried and tested wiggle X or Y axis only (see green and red axis above) expressions you can use:

wiggle only in X (horizontal)

This is the expression for position to wiggle X only:

org=value;
temp=wiggle (5,50);
[temp[0],org[1]];

Shorthand (short version):

[wiggle(5,50)[0],position[1]]

Wiggle only in Y (vertical)

This is the expression for position to wiggle Y only:

org=value;
temp=wiggle (5,50);
[org[0],temp[1]];

Shorthand (short version):

[position[0],wiggle(5,50)[1]]

Now you know how to create a wiggle expression in After Effects for only X or Y direction! Hopefully you found this page about how to wiggle in x or y axis only helpful. Please do get in touch below if you have a video project for us you want to discuss.

Read more: ‘Start or stop wiggle at specific time’ »

We supply animated video and illustration to both local, national and international design agencies & animated production studios.

pricing

Partner with Us! We produce 2D animation & whiteboard animation for agencies & studios.

READY TO PARTNER? – CONTACT US FOR A FREE QUOTE!

Please fill out this quick animated video form and we’ll follow up.
Or call Anders Sundstedt: +44 (0) 7531 800 711.

Your name*

Your website

Your email*

How can we help? Details please!*

What's your budget?*

 By using this form you agree with the storage and handling of your data by this website. Privacy Policy. *

* Indicates Required


Back To Top

Need an Animated Whiteboard Video?
Glasgow City of Science Blog features Sundstedt Animation Video

Anders is the Founder and Owner at Sundstedt Animation, where he creates handcrafted animated explainer videos, music videos and whiteboard videos. He lives in Glasgow, Scotland and enjoys film and photography. You can follow him on LinkedIn, Google+ and Twitter.

It's only fair to share...
Share on Facebook
Facebook
Share on Google+
Google+
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Email this to someone
email