附件-更改TextLayer的字体大小

问题描述 投票:0回答:1

如何简单地更改TextLayer的字体大小?我尝试了所有方法,最新发现的方法是使用value.fontSize

var comp = app.project.activeItem,
    text = comp.layers.addText();
text.property("Source Text").value.fontSize = 10; // <-- Nope ._.
extendscript after-effects
1个回答
0
投票

喜欢这个:

var
textProp = text.property("ADBE Text Properties").property("ADBE Text Document"),
textDoc = textProp.value;

textDoc.fontSize = 10;
textProp.setValue(textDoc);
© www.soinside.com 2019 - 2024. All rights reserved.