Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Creating text style expressions using Legacy ExtendScript

  • Creating text style expressions using Legacy ExtendScript

    Posted by Liam van Eeden on May 29, 2024 at 12:52 pm

    I made some JavaScript expressions so I could change my text size using a slider control (see expressions below). However, I need my project to be set to Legacy ExtendScript, not JavaScript. Is someone able to help me achieve the same outcome using Legacy ExtendScript expressions?

     

    var txt1 = text.sourceText;

    var txtSlider = effect(“Text Size”)(“Slider”);

    txt1.style.setFontSize(txtSlider).setText(txt1)

     

    The error that shows up when this expression is in a Legacy ExtendScript project is: Property or method named ‘style’ in Class ‘TextProperty’ is missing or does not exist. It may have been renamed, moved, deleted, or the name may have been mistyped.

    Dan Ebberts replied 2 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    May 29, 2024 at 2:45 pm

    I believe all the style stuff requires the JavaScript engine. I don’t know of a good work around (other than scaling).

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