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