Page 1 of 1

Animation Presets

Posted: November 16th, 2007, 7:20 pm
by philspitler
Anybody know of some code to apply an animation preset to a layer?

I am hoping to make a script that will go through each item of footage, make a comp from it, apply the preset then add to the render queue.

Thanks.

Phil

Posted: November 16th, 2007, 8:53 pm
by Dan Ebberts
Like this:

Code: Select all

var myComp = app.project.activeItem;
var myLayer = myComp.selectedLayers[0];
var myPreset = fileGetDialog("Select Preset","");
myLayer.applyPreset(myPreset);
Dan

Posted: November 26th, 2007, 9:13 am
by lloydalvarez
Hi Phil,

I already wrote a script that does exactly that. You can check it out here:

http://aescripts.com/2006/04/04/footage ... -w-preset/