New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

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

Dealing with non-uniform scale issues

From: After Effects Apprentice 07: Parenting

Video: Dealing with non-uniform scale issues

In this sidebar I'd like to show you a gotcha that can crop up with parenting and how to fix it. You don't need any particular source files. Anything around will do. If you were in the first project file that came with this lesson, you can go ahead and use that planted layer. If you're in the second project file, I have saved for you a pair of sphere objects. To demonstrate this I'm going to create a composition, again using a square pixel preset. I'm doing that just so you can see the distortion more clearly. This works at any composition size. And I am going to title it non-uniform scale, because that's the name of this issue.

Dealing with non-uniform scale issues

In this sidebar I'd like to show you a gotcha that can crop up with parenting and how to fix it. You don't need any particular source files. Anything around will do. If you were in the first project file that came with this lesson, you can go ahead and use that planted layer. If you're in the second project file, I have saved for you a pair of sphere objects. To demonstrate this I'm going to create a composition, again using a square pixel preset. I'm doing that just so you can see the distortion more clearly. This works at any composition size. And I am going to title it non-uniform scale, because that's the name of this issue.

I'm going to drag my two spheres into this composition and let's say that I decided that this sphere will be the parent and this one will be the child and let's say that my design happens to dictate that this sphere needs to start out distorted. So I'm going to type S to reveal scale, turn off its Constrain Proportions and squish it into an oval. Say so it's roughly half as tall as it is wide. So you can see what's going on underneath the hood.

I'm also going to reveal the Scale for what's going to become my child sphere. It sorts out at 100, 100. I parent this sphere into large copper sphere and watch what happens to the Scale value. It becomes 100, 200 even though it did not change apparent size in the Comp panel. Here is what's going on underneath the hood. Whenever you parent one layer to another, After Effects should not change the appearance of the child. However, the parent's transformations and the child's transformations are factored together to determine the final appearance of the child.

Since the parent was already scaled 50% in Y, under the hood After Effects had to scale the child by 200% in Y. So 50 times 200 gets back to the original 100% scale. Convoluted math it may seem, but that's what going on to maintain the original size. Normally, you can just ignore this. But what happens if you decide to say rotate this child as well? As I do so you see something very strange going on. Basically, the parent is casting a sort of reality distortion field around that child.

You're not rotating a nice sphere; you're rotating something through this distortion. And obviously this might not be your desired result. So let's go ahead and undo back to where we started and show you a better solution. Once again, we are going to use our friend the null object. I am going to create a Layer > New > Null Object. Give it a name such as scale correction. You can give it any name that you want. Just to I can keep my hierarchy straight, I'm going to put it between the spheres, because it's going to sit between these two in a parenting chain and soak up those non-uniform scales.

I want my null to be centered over my parent. So I am going to select my parent, reveal its position, copy it, and paste onto the null so that they are centered up. They'll transform from the same position and type S to reveal the nulls of the scale. I'm going to attach the null to my intended parent. You'll see it gets the same scale distortion as we had before, but since null objects do not render, it's basically soaking up that distortion. Now I can take my child, parent it to the null, and you will notice its scale does not change. Well, why is that? That's because 50 times 200 means that so far through the parenting chain we have a 100% Y-scale, therefore no strange distortion needs to be done to the child to make it look the same in the composition.

The null object has soaked up all of those strange distortions for us. Now when we rotate the child, it does exactly what we expected to do, no reality distortion field. So not only do null objects make fantastic parents when you're creating a parenting hierarchy, they also make great connectors in-between objects in a parenting hierarchy to help us soak up these non-uniform distortions and also just be good things to attach other children on to. If you ever have something weird happened late at night, remember this movie and remember this trick.

Use a null in between children to act as a mediator in-between them.

Show transcript

This video is part of

Image for After Effects Apprentice 07: Parenting
After Effects Apprentice 07: Parenting

17 video lessons · 7218 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

Are you sure you want to delete this note?

No

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.