
https://youtu.be/IzWI7gT5aG0
Code
var comp = app.project.items.addComp("MyComposition", 1920, 1080, 1, 10, 30);
var textLayer = comp.layers.addText("Hello, After Effects!");
textLayer.property("Position").setValue([960, 540]);
textLayer.property("Scale").setValue([150, 150]);
var textProp = textLayer.property("Source Text");
var textDocument = textProp.value;
textDocument.fillColor = [0.8, 0.4, 0.6];
textProp.setValue(textDocument);
var position = textLayer.property("Position");
position.setValueAtTime(0, [960, 540]);
position.setValueAtTime(10, [960, 300]);
Etc...
https://ae-scripting.docsforadobe.dev/index.html