Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Working with Auto-Orientation

From: After Effects Apprentice 03: Advanced Animation

Video: Working with Auto-Orientation

A couple of movies ago I used the Motion Sketch to create a very organic flight path or motion path of this butterfly. Motion Sketch creates position keyframes based on how I drag my cursor around the Comp panel, but it is does not create any rotation keyframes and you'll notice the butterfly always keeps the same orientation in relation to the comp, no matter what it's doing around the path. Well, this is not how butterflies actually fly. So what I needed to do is rotate so it's always pointing along that path. Well, fortunately, there's command in After Effects that will do that for you automatically.

Working with Auto-Orientation

A couple of movies ago I used the Motion Sketch to create a very organic flight path or motion path of this butterfly. Motion Sketch creates position keyframes based on how I drag my cursor around the Comp panel, but it is does not create any rotation keyframes and you'll notice the butterfly always keeps the same orientation in relation to the comp, no matter what it's doing around the path. Well, this is not how butterflies actually fly. So what I needed to do is rotate so it's always pointing along that path. Well, fortunately, there's command in After Effects that will do that for you automatically.

Select the layer, go up to Layer > Transforms for transformations and then select Auto-Orient. That will open up a new dialog. Select Orient Along Path and click OK. Now you'll see that the butterfly has flipped around in rotation and as I drag my Time Indicator through all these keyframes, you'll see that the butterfly is automatically rotating, depending on how it's facing along this path. Now, unfortunately After Effect does not know how this layer was originally oriented, so it does not know what is the correct initial orientation of this butterfly.

That's no problem. I'll hold down Shift and type R to add Rotation to my visible parameters on the Timeline panel. Now I'll start playing around with the Rotation parameter to see which way the butterfly needs to point to along the flight path. Normally it's a multiple of 90 degrees unless your layer happens to be drawn skewed to normal up-down, left-right orientation. Okay, this is looking pretty good actually. Now it automatically rotates along the path, but I do have a couple of problems. One, he goes to a really weird kink right here, and two, it's really common to have problems at the start and end of paths.

Fortunately this is pretty smooth, but I'll show you the problem. Okay, as we go through this keyframe, we have this odd rotation and that's because the motion path is going to a kink right here at this keyframe. What you want to do is play around the path and your Bezier handles to smooth transitions through keyframes as much as possible. Keyframe handles that are too long will start to bump into each other and create unusual shapes. Sometimes better to shorten up your handles believe it or not, and move your keyframes until you have more rounding.

So now let's see what that looks likes for that path. That's a bit better of a rotation. The one place where you often run into this problem is at your very first or your very last keyframe. I'm going to hold Command on Mac or Ctrl on Windows, press plus, zoom in at 200%, hold down the Spacebar to temporarily get the Hand tool. Let's look at that starting point. What you really need is for your handle, for that first/last keyframe, to come out smoothly. If the handle is off at a weird angle or too short, you'll get some weird rotations as you get close to that keyframe. Watch, this butterfly has suddenly flipped in these first couple frames of animation.

So whenever you're using Auto-Orient, you really need to pay attention to those first and last keyframes, to get a smooth path in and out of that keyframe. Let's go to the end. I'll select my end keyframes so I can see how that looks like, and it looks like it's a linear keyframe. It doesn't even have a handle that I can easily discern. So I'm going to hold down the G key to temporarily get the Convert Vertex tool. I'm going to pull out that handle just to make sure it's smooth, and again if I was at a weird angle like this or backward is off to an angle like that, I would have problems with the butterfly doing some bad rotations, right, when I came close to that keyframe.

I want to make sure that the handle is pointed along the way. The motion path either enters or exits that keyframe. Better! I'll hold down Shift key and type forward slash to re-center my image and scale back to 100%, RAM preview, and now I have a nice auto-oriented butterfly flying around my handdrawn and carefully smooth path. Next, let's work on his speed along that path.

Show transcript

This video is part of

Image for After Effects Apprentice 03: Advanced Animation
After Effects Apprentice 03: Advanced Animation

32 video lessons · 22692 viewers

Chris Meyer and Trish Meyer
Author

 

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now "Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed After Effects Apprentice 03: Advanced Animation.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.