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

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

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

wiggle X or Y axis only in After Effects

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 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 alternative, tried and tested wiggle X or Y axis only (see green and red axis above) expressions:

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.

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

pricing

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

Please fill out this quick form and we’ll follow up.
Or call: +44 (0) 7531 800 711, or email: hello@sundstedt.co.uk

First name*

Last 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