ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Align two layers across comp

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Josh Dekay
Align two layers across comp
on Nov 10, 2014 at 10:50:23 pm

Hello,

For the sake of this question, I've created a simple example.

Say I have two layers, text layers in this example, they are aligned horizontally. How do I center them within the comp while keeping their relative spacing to each other? They could be circles, squares, etc - I'm just using text to illustrate.

In Photoshop for instance, I'd create the two layers, group them and then align the group to a marquee selection (which would be equal to the entire canvas). Both layers would remain spaced the same relative to each other, but their parenting group would be centered and therefore center all of the text as well.

There's got to be a simple way to do this without pre-comping them and centering the new comp that I'm overlooking...



Return to posts index

Daniel Waldron
Re: Align two layers across comp
on Nov 11, 2014 at 2:30:11 pm

You can center layers using the Align panel. Go to Window --> Align and then select the vertical and horizontal centering buttons. To keep the layers spaced relative to each other, simply parent one to the other. So if you parent "First" to "Second", you can drag "Second" around and "First" will follow.


Return to posts index

Josh Dekay
Re: Align two layers across comp
on Nov 11, 2014 at 3:50:25 pm

Hey Daniel,

The issue with that is that once it's parented, if the align tools are used (Window > Align), the alignment is set to the parent only and not both words as a "group". In other words "First" is centered, but "Second" is not. See what I mean?

Any other thoughts?

Thanks for the reply.


Return to posts index


Daniel Waldron
Re: Align two layers across comp
on Nov 11, 2014 at 4:07:29 pm

Ah, I see what you're saying. You could parent both layers to a Null Object that is in between both layers, then use the align function on the Null Object, but then you are stuck trying to center the null object between the two layers.

I know you don't want to hear this, but I think precomping is your best bet.


Return to posts index

Josh Dekay
Re: Align two layers across comp
on Nov 11, 2014 at 4:18:40 pm

Copy that - if anything else comes to mind I'm all ears.

Cheers!


Return to posts index

Joe Bell
Re: Align two layers across comp
on Sep 10, 2019 at 10:08:02 am

Null layer works great for this - many thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]