2008-09-16 66 views

回答

1

嗯,下次必须阅读文档。

var theComposition = app.project.item(1); 
var theTextLayer = theComposition.layers[1]; 
theTextLayer.property("Source Text").setValue("This text is from code"); 
1

我不是After Effects的专家,但我已经搞砸了。我认为reading this可能会帮助你。

0

这就是我如何改变文本。

var comp = app.project.item(23); 
 
var layer = comp.layer('some_layer_name'); 
 
var textProp = layer.property("Source Text"); 
 
var textDocument = textProp.value; 
 

 
textDocument.text = "This is the new text"; 
 
textProp.setValue(textDocument);