Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions TextDocument object’s “Leading” Property?

  • TextDocument object’s “Leading” Property?

    Posted by Andy Kreutzberg on May 8, 2013 at 3:05 pm

    Hello all,

    this is probably an easy scripting thing but i can’t get this one to work no matter what i tried:

    In a script, all parameters for characters in a text layer seem to be adjustable by the TextDocument object, except the Leading parameter. This parameter is not listed in the AE scripting guide. But why? And how can i change this value with a script?

    I tried this:

    textDocument2.leading = 40;

    which just returns “auto” inside of after effects, no matter what value i give it, but at the same time it does not seem to fail to recognise the property because the script continues after this line.

    Is there a dependancy on another value maybe or am i just using the wrong property? All other values (font size, tracking, etc) work as they should.

    Todd Kopriva replied 13 years ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    May 8, 2013 at 3:11 pm

    Leading is not accessible to scripting. The fact that your script continues without error probably just means that it has appeneded its own, non-functional leading attribute to your textDocument2 object (just a guess).

    Dan

  • Todd Kopriva

    May 8, 2013 at 3:58 pm

    If you want leading access in scripting, you should submit a feature request:
    https://www.adobe.com/go/wish

    ———————————————————————————————————
    Todd Kopriva, Adobe Systems Incorporated
    After Effects quality engineering
    After Effects team blog
    ———————————————————————————————————

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