Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions A way to change text properties without touching source text? (scripting)

  • A way to change text properties without touching source text? (scripting)

    Posted by Edward Clayton on October 10, 2022 at 9:54 pm

    Working on a script that involves text properties (tracking, leading, horizontal scaling, etc)

    Here is a snippet of my code:

        var src = layer.property("ADBE Text Properties").property("ADBE Text Document");
    var srcText = src.value;
    srcText.horizontalScale = 0.0001;
    src.setValue(srcText);

    This works fine except it resets all of the style of the text to whatever the first character is (like in source text expressions).

    Is there a way to rewrite this so that I only change the horizontal scale of the text without touching the source text?

    Edward Clayton replied 3 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 11, 2022 at 12:56 am

    Unfortunately, I think that’s how it is.

  • Edward Clayton

    October 12, 2022 at 7:15 pm

    I figured as much, but thanks for the conformation!

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