Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Trying to create a very simple script loop for Presets

  • Trying to create a very simple script loop for Presets

    Posted by Chris Marriott on March 15, 2019 at 7:34 pm

    Hi there,

    VERY new to scripting but use a ton of AEscripts tools in After Effects.

    I’m trying to create a very small script that will apply pre-sets all at the same time to a selected layer.

    I currently have this but it doesn’t seem to work. Scripts within the *** they are not in the script file.

    *********************************

    var presetList = [

    ‘c:/Program Files/Adobe/Adobe After Effects CS6/Support Files/Presets/BrainStorm/Brainstorm Exposure Correction.ffx’,

    ‘c:/Program Files/Adobe/Adobe After Effects CS6/Support Files/Presets/BrainStorm/Brainstorm Screen Enhancer.ffx’,

    ‘c:/Program Files/Adobe/Adobe After Effects CS6/Support Files/Presets/BrainStorm/Brainstorm Primatte Keyer Default.ffx’,

    ‘c:/Program Files/Adobe/Adobe After Effects CS6/Support Files/Presets/BrainStorm/Brainstorm Samurai.ffx’,

    ‘c:/Program Files/Adobe/Adobe After Effects CS6/Support Files/Presets/BrainStorm/Colour Fix For Blacks.ffx’,];

    for (var i = 0; i < presetList.length; i++)

    {

    app.project.activeItem.selectedLayers[0].applyPreset(presetList[i]);

    }

    ********************************

    If I run it from a docked UI panel for scripts nothing happens, if I try it as a JavaScript button in FT ToolBar 2 it doesn’t do anything, but if I launch it from the File/Run/Script route I just get an error saying that the ffx file is not a file or folder?

    I’ve tried guessing different ways of writing the pre-set location but don’t seem to be having any luck.

    If anyone has an idea on how to get this working it would be awesome.

    Thanks,

    Chris

    Cole Bo replied 7 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Cole Bo

    March 26, 2019 at 9:45 pm

    Hi Chris! Not sure if you’re still having the issue or not.
    Here is what I have in my Ft. Toolbar2:

    Button Parameters: ANIMATION PRESET
    ~/Documents/Adobe/After Effects CC 2018/User Presets/Layer Styles/Inner Shadow.ffx

    Not sure if this is helpful or not for your situation. That’s the method I use for FT Toolbar2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy