I have a problem with my script.
I am merely trying to set a proxy using only ae scripting.
However, everytime I run the script, I have an error.
Here is my script:
Code: Select all
{ //start main function
app.beginUndoGroup("mainprog");
var myCompItem = app.project.item(2); //a var for the composition
var selItems = app.project.selection; //a var for the selection
myCompItem.layers.add(selItems[0]); //the file is brought in the composition, centered
var firstLayer = myCompItem.layer(1); //a var for the first layer
firstLayer.scale.setValue([200,200,100]); //scaling the first layer to fit
selItems[0].setProxy(file "/system/Users/hpham/Desktop/proxytest1.psd");
}
Can anyone explain to me what I did wrong?