Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Can I attach a null object to text edge?

  • Can I attach a null object to text edge?

    Posted by Dmitry Yershov on February 21, 2014 at 1:38 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!

    Dmitry Yershov replied 12 years, 2 months ago 3 Members · 3 Replies
  • 3 Replies
  • John Cuevas

    February 21, 2014 at 5:34 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.

  • Kevin Camp

    February 21, 2014 at 11:44 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

  • Dmitry Yershov

    February 22, 2014 at 12:07 pm

    Thanks a lot, Kevin!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy