Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script my actions?

  • Script my actions?

    Posted by Anthony Dupsta on December 19, 2007 at 7:18 pm

    Might be an unrealistic request.

    Scripts would be great for my work flow.

    Could someone help me out.

    I find myself building separate LUTs in each comp, and applying animation presets to each LUT.

    My master comp: I create 2 adjustment Layer. The first has animation preset1 applied, the second adjustment layer has preset2 applied.

    I guess its not that big of a deal. Just though a script would be great to run on this every time!
    In the future would love to have certain folders already set up in the project window.

    Thanks again.

    If you can help, I can give more specifics.

    AE7 Win

    Lloyd Alvarez replied 18 years, 4 months ago 3 Members · 7 Replies
  • 7 Replies
  • Dan Ebberts

    December 19, 2007 at 9:26 pm

    Play around with this. You’ll need to edit the paths to your presets and you’ll need to have your comp seleceted in the project window.

    {

    var preset1Path = escape(“/c/Temp/preset1.ffx”); //path to preset 1
    var preset2Path = escape(“/c/Temp/preset2.ffx”); // path to preset 2

    var preset1 = File(preset1Path);
    var preset2 = File(preset2Path);

    var myComp = app.project.activeItem;

    var myAdjLayer2 = myComp.layers.addSolid([1,1,1],”adj layer 2″, myComp.width,myComp.height,myComp.pixelAspect,myComp.duration);
    myAdjLayer2.adjustmentLayer = true;
    myAdjLayer2.applyPreset(preset2);

    var myAdjLayer1 = myComp.layers.addSolid([1,1,1],”adj layer 1″, myComp.width,myComp.height,myComp.pixelAspect,myComp.duration);
    myAdjLayer1.adjustmentLayer = true;
    myAdjLayer1.applyPreset(preset1);

    }

    Dan

  • Anthony Dupsta

    December 19, 2007 at 10:35 pm

    Thanks for your reply: I am a complete newbie, bare with me.
    I will modify this and maybe you can help me along.
    I am going to copy and paste my paths. You have used forward slashes. I am new to scripting. I assume this was just off the top of your head, right? Or do I need to follow forward slashes instead of the default backslashes?

  • Dan Ebberts

    December 19, 2007 at 10:46 pm

    You can use either Adobe’s URI notation (like I did, with the forward slashes), which is platform independent, or you can use your platform-specific notation (in which case I think you don’t need to use escape() ).

    Dan

  • Anthony Dupsta

    December 19, 2007 at 10:50 pm

    Dan,
    That is it, I love it. This is my first attempt at using scripts, and this works great.
    Thank you so much!!!

    I am good to go

  • Anthony Dupsta

    December 19, 2007 at 11:19 pm

    OK, I am enjoying this, So can I assign a shortcut key to execute this script. Or do I need to go and click it. I have to go into Run Script.. Looks like a few preset scripts are in that menu but our script can only be accessed through Run Scripts. Than I navigate to the script folder. Wonder why it doesn’t appear in the pull down window. Its in the same script folder as all the default scripts.

  • Dan Ebberts

    December 20, 2007 at 12:34 am

    Assuming that you saved it as a .jsx, you probably just need to restart AE.

    Dan

  • Lloyd Alvarez

    January 3, 2008 at 10:04 pm

    You can assign keyboard shortcuts to the first 20 scripts in your script menu by editing the Shortcuts Prefs file which is in the Preferences directory. Once you open it, search for “ExecuteScript” and you’ll see the entries where you can assign any keyboard shortcut you want.

    -Lloyd

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