ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Can I attach a null object to text edge?

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Dmitry YershovCan I attach a null object to text edge?
by on Feb 21, 2014 at 1:38:06 pm

Hey everyone,

Is it possible to attach a null object to the edge of the text in order for the Null's position to respond to the number of characters in the placeholder?

So if I change the length of the text the null stays at the edge of the last character?



Thanks!


Return to posts index

John CuevasRe: Can I attach a null object to text edge?
by on Feb 21, 2014 at 5:34:16 pm

Probably need an expression to accomplish that, try posting in the AE Expressions Forum

Johnny Cuevas, Editor
Thinkck.com

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Return to posts index

Kevin CampRe: Can I attach a null object to text edge?
by on Feb 21, 2014 at 11:44:19 pm

not really...

if you happen to use a fixed width font (like courier), you could use an expression that counted the number of characters and multiplied it by the width of a single character (you'd need to determine the width of a single character). that expression would look something like this:

target = thisComp.layer("MyText"); // this would be your text layer
w = 25; // set the width for a single character in pixels

offset = target.text.sourceText.length * w
value + [offset,0]


move the null to the end a the text and then apply that expression (changing the target layer to be your text layer and the setting w to the width of a single character) and it should follow the end of the text string if you use a fixed width font.

if you are not using a fixed width font, then it would difficult.

what is it that you are ultimately trying to achieve?

Kevin Camp
Art Director
KCPQ, KZJO & KRCW


Return to posts index


Dmitry YershovRe: Can I attach a null object to text edge?
by on Feb 22, 2014 at 12:07:59 pm

Thanks a lot, Kevin!


Return to posts index

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