After Effects CS3 Javascript APIを使用して、コンポジション内のテキストレイヤーを動的に作成および変更しています。
または、少なくとも、TextLayerオブジェクトの実際のテキストを変更するために変更する適切なプロパティが見つからないため、これを実行しようとしています。
After Effects CS3 Javascript APIを使用して、コンポジション内のテキストレイヤーを動的に作成および変更しています。
または、少なくとも、TextLayerオブジェクトの実際のテキストを変更するために変更する適切なプロパティが見つからないため、これを実行しようとしています。
うーん、次回はもっとドキュメントを読まなければなりません。
var theComposition = app.project.item(1);
var theTextLayer = theComposition.layers[1];
theTextLayer.property("Source Text").setValue("This text is from code");
私は After Effects の専門家ではありませんが、いじりました。これを読んで参考になればと思います。
こんな感じで文字を変えています。
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);