-
Reset next text horizontal scale
I’m using this script to change the text horizontal scale, but when I create another text in the comp, it set to the previous horizontal scale. How can I make changes to text and a new text will be in normal scale?
function TextHorizScale(myLayer) {var myLayer = myLayer;
var textProp = myLayer.property("Source Text");
textDocument = textProp.value;
textDocument.horizontalScale = 0.5;
return textProp.setValue(textDocument);I tried this but didn’t work:
var fixCharacter = app.project.activeItem.layers.addText("Fix Text");textReset(fixCharText);
fixCharText.remove();
function textReset(myLayer) {
var myLayer = myLayer;
var textProp = myLayer.property("Source Text");
textDocument = textProp.value;
textDocument.horizontalScale = 1;
return textProp.setValue(textDocument);
}