-
A way to change text properties without touching source text? (scripting)
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?