-
Difficulty figuring out script to change font style over time
Hello I’ve been tormenting myself for like two weeks with after effects scripting to be able to generate a script that changes a font style at intervals of half a second. I came to the following script mainly from the AE scripting guide so I don’t understand it completely. But right now all it does is change the Font Style for a specific layer. I tried mixing this script with another found in the same source but couldn’t make it work. It used the .setValueAtTime() method but I did a really good mess.
I thought that if I created an array for the font styles I wanted I could call it instead of generating individual variables for each style but it never worked. I’m sure there’s a way but it beats me. Please help!!
var textLayer = app.project.item(1).layer(7);
var textProp = textLayer.property("Source Text");
var textDocument = textProp.value;
textDocument.font = "DINNextLTPro-Bold";
textProp.setValue(textDocument);