-
Creating text style expressions using Legacy ExtendScript
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.