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 videos, motion graphics and 2.5D animation for agencies. Anders Sundstedt works remotely with studios and agencies, including 2d animation, graphics, background artwork, illustration, storyboarding & animated loops. As an artist, Anders Sundstedt makes all content from scratch. No stock or templates. If you are a musician/songwriter/producer and looking for a video director, please check out my music video work.

This guide was written by award-winning Anders Sundstedt, Director, Animator & Illustrator of Sundstedt Animation (available for animated video project work, simply get in touch to discuss your project).

Anders Sundstedt - Wiggle in X or Y only

Animated Video Testimonials

“Anders is an amazing artist and animator! I had the pleasure of collaborating with him on a song I produced for Sofi K called “Fall Back Down.” The level of hard work and detail that he put into our music video was unbelievable. He is communicative and gives you detailed descriptions and options of ways to make something work. We sent him examples of some of the imagery, tone, and feel that we were looking for in our animation and he was able to masterfully incorporate these things in. We were blown away by his talent and the way our video came out. I think Anders is doing great things in the world of animation and will continue to impress the people he collaborates with. I’m hoping to work with him again in the future.”
Bryce Harding

“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

About X axis and Y axis

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:


Let’s start with how to wiggle only in the X-axis first (only X!):

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);

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

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:

temp=wiggle (5,50);

Shorthand (short version):


Wiggle only in Y (vertical)

This is the expression for position to wiggle Y only:

temp=wiggle (5,50);

Shorthand (short version):


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.

Partner with Us! We produce animated videos for both individual clients and other studios.

We supply animated video and illustration, animated loops, whiteboard video and video skin retouching 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 more articles and pages:

SOFI K – Fall Back Down (Music Video)
Anders Sundstedt Portfolio
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
Bring Back SHIFT KEY For Proportional Transform in Photoshop 2020
Services – What We Do
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 Signatures

Ready To Partner?

Back To Top

How useful was this post?

Click on a star to rate it!

Average rating 4.2 / 5. Vote count: 5

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Don`t copy text!