ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Align horizontally between them three layers (one image and two text)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
fred wood
Align horizontally between them three layers (one image and two text)
on Apr 23, 2019 at 8:40:17 am

Hello, this is my first post here, thanks to everyone for help me... I tried to align three layers horizontally... I have one picture, one layer text and another after.
My problem, is the layer between others is a number who move of 0 to a number choice by the editor. And the thirty layer have to move depend of the numbers taped.

Here a example :

Thanks a lot to your help to find the good expression.

Fred


Return to posts index

Kalleheikki Kannisto
Re: Align horizontally between them three layers (one image and two text)
on Apr 24, 2019 at 3:56:31 pm

If the are the same font, size and color, you can add the source text values together with a space character in between and hold the result in a single text box. Doesn't get simpler than that.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

fred wood
Re: Align horizontally between them three layers (one image and two text)
on Apr 24, 2019 at 5:22:35 pm

Hi, thanks a lot for help me, but not the same font etc... the first is a picture, the second is a number who move to à at X et the last is one text layer classic... mu problem is when we change the final number, sometine is 100 or 1000000... so the place between numbers and text have to adapt...
Sorry for my english... I don't know if you understand what I explain?


Return to posts index


Kalleheikki Kannisto
Re: Align horizontally between them three layers (one image and two text)
on Apr 25, 2019 at 7:04:56 am

If the font, color or size of the number and the text are different, you'll need to use sourceRectAtTime() to get the width of the number and add it and some padding to get the position of the text.
If the font, color and size of the number and the text are the same (as shown in your screenshot), you can do it per the first suggestion.
The color of the icon has no bearing in this.

Kalleheikki Kannisto
Senior Graphic Designer


Return to posts index

fred wood
Re: Align horizontally between them three layers (one image and two text)
on Apr 26, 2019 at 9:46:21 am

Thanks for your help... I will search with this expression...


Return to posts index

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