ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Text to Comps and Layers Script

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Henry A. Milton
Text to Comps and Layers Script
on Jan 24, 2017 at 11:29:26 am

Hi,

I am working on a script based on David Tornos tutorial:
http://www.provideocoalition.com/after-effects-extendscript-training-ep-16/


The script reads out a text file and create Comps with text layers.

I want to add some more stuff:

1. The text layers should go into a Precomp
2. This Precomp should get a CornerPin FX with keyframe added to it.
3. I wann to place footage below the Precomp

What would be the easiest way to do this?

Below you can see the function that creates the comps.

function createNewComps(content){
try{
if(content instanceof Array){
var c, compName, curLine, line1, line2, pl;
vat aryLength = content.length;
for(var i=0; i<aryLength; i++){
curLine = content[i];
pl = parse(curLine);
line1 = pl.firstName + " " + pl.lastName;
line2 = pl.title;
compName = pl.lastName + "_" + pl.firstName;
if(curLine != ""){
c = app.project.item.addComp(compName, 720, 405, 1.0, 10, 25);
createNameLayers(c, line1);
createTitleLayers(c, line2);
}
}
}

}catch(err){alert(err.line.toString() + "\r" + err.toString())};
}


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]