2008-09-16 6 views

Antwort

1

Hmm, muss das nächste Mal härter lesen.

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

Ich bin kein Experte für After Effects, aber ich habe mich damit herumgeschlagen. Ich denke, reading this könnte Ihnen helfen.

0

So ändere ich den Text.

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);

Verwandte Themen