FORUMS: list search recent posts

Lock position of layer to text length

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Taso Mastorakis
Lock position of layer to text length
on Jan 19, 2018 at 4:13:32 pm

Hey everyone, I'm sort of a novice with expressions and I found this one from Dan that almost does what I need it to:

gap = 10;
L = thisComp.layer("text");
rect = L.sourceRectAtTime(time,false);
x = L.toComp([rect.left+rect.width,0])[0];
[x+gap+width/2,value[1]]

It works great if the text layer is left justified moving to the right. Just wondering how I can reverse this to be right justified and have the secondary layer move to the left. I've tried switching a number of the attributes but nothing seems to work. Thanks in advance.


Return to posts index

Taso Mastorakis
Re: Lock position of layer to text length
on Jan 19, 2018 at 9:01:25 pm

This was answered, thanks.


Return to posts index

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