2008-09-16 61 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);

相關問題