3

After Effects CS3 Javascript APIを使用して、コンポジション内のテキストレイヤーを動的に作成および変更しています。

または、少なくとも、TextLayerオブジェクトの実際のテキストを変更するために変更する適切なプロパティが見つからないため、これを実行しようとしています。

4

4 に答える 4

3

うーん、次回はもっとドキュメントを読まなければなりません。

var theComposition = app.project.item(1);
var theTextLayer = theComposition.layers[1];
theTextLayer.property("Source Text").setValue("This text is from code");
于 2008-09-16T14:41:11.527 に答える
2

私は After Effects の専門家ではありませんが、いじりました。これを読んで参考になればと思います。

于 2008-09-16T04:49:08.657 に答える
1

こんな感じで文字を変えています。

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

于 2015-03-04T02:00:00.313 に答える