Loading an expression with a script
Posted: November 4th, 2009, 3:18 pm
I have a script that does a few things, and upon completion i need it to add an expression the the position of a layer in a comp. the expression is saves on its own in a .js file and the script is supposed to load it. this isnt' working at all the way i expect it to. here's what i have now. any help would be GREATLY appreciated.
Thanks!
Code: Select all
var positionExpression = new File("R10_PositionExpression.js");
controlComp.layer("Bounce Variable Controls").position.expression = positionExpression;