Apply animation preset
Posted: November 7th, 2008, 4:19 am
Hi everyone,
Im trying to apply a custom animation preset to a layer but I keep getting a
"Unable to call "applyPreset" because of parameter 1 - /Applications/Adobe After Effects CS3/Presets/Custom Preset.ffx is not a File or Folder Object"
My code looks like:
Please help!
Im trying to apply a custom animation preset to a layer but I keep getting a
"Unable to call "applyPreset" because of parameter 1 - /Applications/Adobe After Effects CS3/Presets/Custom Preset.ffx is not a File or Folder Object"
My code looks like:
Code: Select all
function projectItem(name)
{
var items = app.project.items;
j = 1;
while (j <= items.length) {
if (items[j].name == name)
{
return app.project.item(j);
break;
}
j++;
}
}
projectItem("test").layer(1).applyPreset("/Applications/Adobe After Effects CS3/Presets/Custom Preset.ffx");