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

Posted on Wednesday, 13 May 2015

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…

Partner with Sundstedt Animation! We produce 2D animation, whiteboard animation, motion graphics and 2.5D animation for agencies & studios.

This guide was written by Anders Sundstedt, Owner, Director, Animator & Illustrator of Sundstedt Animation (available for remote freelance work, simply get in touch to discuss your project).

“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.

Are you looking for a reliable animated video partner? - Sundstedt Animation

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

We supply animated video and illustration to both local, national and international design agencies & animated production studios. Please do get in touch if you have a video project for us you want to discuss.

Here are some more articles and pages:

Start or stop wiggle at specific time
After Effects Eye Blink Expression
Animating a head-bob in After Effects
How to lock the position of a mask in After Effects
Moving anchor point to center of content in After Effects
Exporting Photoshop Animation To After Effects & Looping Forever
Replace and Reconnect a PSD file in After Effects
Services – What We Do
Animation & Whiteboard Portfolio
Professional Video Skin Retouch Services
2.5D Parallax 3D Effect Animated Photo Service
Explainer Video Production Service
Healthcare, Biotech, Medical & Pharmaceutical Animation
Artist or a band wanting an animated music video?
Animated Music Video Production Studio
Lyric Video Production Service
Non-Profit Explainer Video Services
Corporate Video Production Services
Animated Infographics
Title Sequence Design Services
Childrens Book Illustration
2D Background Artist Services
Animated Book Trailers Videos Production
Book Trailer Video Service
Colour Grading Services
Whiteboard Animation Service
VideoScribe Video Production Service
Whiteboard Animation Companies
Dark Energy – Animated Music Video
Poka – Animated Music Video
Replace new lines with commas in Notepad++
Fix the Formatting for Outlook.com Signatures

READY TO PARTNER? – CONTACT US NOW!

Interested in working together? We do not work with just anyone. Please fill out this form and we’ll follow up. Or call Anders Sundstedt: +44 7531 800 711.

Your name*

Your email*

Your website

How can we help? Details please!*

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

* Indicates Required


Back To Top

Don`t copy text!