ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

fix a left-aligned text layer with them right edge at an certain position

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Detlef Maerz
fix a left-aligned text layer with them right edge at an certain position
on Aug 16, 2018 at 8:48:20 am

Hey guys,

i’m searching for a solution for a expression to fix a left-aligned text layer with them right edge at an certain position or right edge of the composition automatically?

Do anybody have an idea?

Thank you guys!



Return to posts index

Scott McGee
Re: fix a left-aligned text layer with them right edge at an certain position
on Aug 16, 2018 at 4:03:51 pm

in anchor point firstly

r = sourceRectAtTime();
[r.left + r.width, r.top + r.height/2]

This will automatically place the anchor point always to the right hand side.

Then in position.

x = 150; //(you can assign it to a slider swell if you want multiple.)
y = value[1];
[x,y]


Return to posts index

Detlef Maerz
Re: fix a left-aligned text layer with them right edge at an certain position
on Aug 20, 2018 at 1:32:49 pm

Thank you so much!!!
It works perfectly!

Best regards!
Detlef


Return to posts index

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