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

Partner with Sundstedt Animation! We produce 2D animation & whiteboard animation for agencies & studios. Capabilities include:

Explainer Video Production
Explainer Video
Healthcare, Biotech, Medical & Pharmaceutical Animation
Healthcare Video
Non-Profit Explainer Video Production
Non-Profit Explainer Video
Whiteboard Animation Production
Whiteboard Video
Animated Music Video Production
Animated Music Video
VideoScribe Video
VideoScribe Video
Corporate Video Production
Corporate Video
2.5D Parallax 3D Effect
2.5D Parallax
video skin retouch
Video Skin Retouch
Animated Infographics
Animated Infographics
book trailer video
Book Trailer Video
animated lyric video
Lyric Video
Title Sequence Design
Title Sequence
illustration service
Illustration
childrens book illustrator
Childrens Book Illustration

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…

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 of the animated videos directed, designed, illustrated and animated by Anders Sundstedt.

Glasgow City Council - Sundstedt Animation
Glasgow City Council – Animated Explainer Video
International Diabetes Federation - Taking Diabetes to Heart - Sundstedt Animation
IDF.org - Animated Campaign Video
The Old Red Rooster Music Video
The Old Red Rooster - Animated Music Video
Eco-Schools-Explainer-Video-Sundstedt-Animation
Eco-Schools - Animated Explainer Video
Microsoft Whiteboard Video - Sundstedt Animation
Microsoft Windows 10 Protects - Whiteboard Video
The Black Sheep - Animated Music Video
The Black Sheep - Animated Music Video
DPRAA Animated Explainer Video
DPRAA - Animated Explainer Video
Lush Animated Music Video - Mother - Sundstedt Animation
Lush - Animated Music Video
Pale White Guy Animated Music Video - Sundstedt Animation
Live - Animated Music Video
Cayman Dance Animated Music Video - Sundstedt Animation
Cayman Dance - Animated Music Video
100-Years-in-Marketing-Explainer-Video
100 Years in Marketing - Animated Explainer Video
Duraflor Animated Explainer Video
Duraflor - Animated Explainer Video
Milo Biotechnology Animated Explainer Video
Milo Biotechnology - Animated Explainer Video
KiDS Educational Whiteboard Video
IDF KiDS - Educational Whiteboard Video
Dumfries & Galloway Animated Explainer Video
Dumfries & Galloway - Animated Marketing Video
Windows 10 Defender Advanced Threat Protection
Windows 10 Defender - Whiteboard Video
Zestica Educational Medical Animation
Zestica - Animated Educational Video
Givvit Explainer Video
Givvit - Animated Explainer Video
ARCHIE-WeST Animation
ARCHIE-WeSt - Animated Explainer Video
BASW-Eddie-Animated-Explainer-Video-295x166
BASW Eddie - Animated Marketing Video
Windows 10 Enterprise med Software Assurance
Windows 10 Enterprise Software Assurance - Whiteboard Video
Track-My-Beef-Animated-Explainer-Video
Track My Beef - Biotech Explainer Video
BASW-Steven Explainer Video by Sundstedt Animation Studio
BASW Steven - Marketing Video
M-Squared-Lasers Explainer Animation
M Squared Lasers - Animated Explainer Video
BASW-Amber-Animated-Explainer-Video-Scotland
BASW Amber - Marketing Video
LightForge-Powerphotonic-Explainer-Video
LightForge - Animated Explainer Video
Titan Vision Animated Explainer Video by Sundstedt Animation
Titan Vision - Animated Explainer Video
Kom igång med Windows 10 i molnet VideoScribe
Kom igång med Windows 10 i molnet - Whiteboard Video
Push-Digital-Animated-Explainer-Video-Google-Ranking-SEO
Push Digital - Animated Explainer Video
Windows As A Service VideoScribe
Windows As A Service - Whiteboard Video
Pfizer Explainer Video
Pfizer Explainer Video [Coming Soon]
How-to-Become-an-Early-Riser
Becoming an Early Riser - Explainer Video

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
Whiteboard Animation Service
VideoScribe Video Production Service
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
Replace new lines with commas in Notepad++
Fix the Formatting for Outlook.com Signatures

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*

Your phone

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!