Forum Replies Created

Page 1 of 2
  • Danyl Bernard

    April 8, 2021 at 4:25 am in reply to: Using linear expression twice in one layer

    Hi,

    It’s been a while, but this worked great.

    Thank you

  • Danyl Bernard

    October 20, 2020 at 1:19 am in reply to: Check if comp exists before running rest of script

    I’m trying something similar with having the checking script creating an alert box that AHK waits for, but it’s still pretty buggy.

    Thanks for the help

  • Danyl Bernard

    October 19, 2020 at 9:47 pm in reply to: Check if comp exists before running rest of script

    It’s a jsxbin.

    I’m using AHK to handle the first script because it uses a GUI, and doesn’t have a headless mode. The script takes anywhere from 5 to 120 seconds to run, and I don’t want to set a delay of 2 minutes before each time AHK runs my script (it’s a loop of about 60 projects which will delay it significantly).

    I do know that the comp FINAL 2 will be the last one the jsxbin script creates

  • Danyl Bernard

    October 19, 2020 at 9:10 pm in reply to: Check if comp exists before running rest of script

    Thank you. I’m still fairly new to scripting and programming in general, so I’m working off other bits of after effects scripts and JavaScript that I find.

    I figured an endless loop would cause issues. Is there a way to run a loop every 3 seconds so as to prevent that freeze from happening?

    My scenario is like this. I have a third party script running in AE creating comps. Then I have a second script that I need to run after the first one is finished.

    The first script is one I bought, and the second is one I made, so I can’t combine the two.

    My solution was to run a loop at the beginning of my script, checking if the last comp which I know will be named FINAL 2 exists, and only then running the rest of the script

    I should add that the third party script has a UI, and my script is running through a command prompt with AHK. The issue is, that AHK runs my script before the first one has a chance to finish, so I need some sort of indicator that the first script is done

  • Danyl Bernard

    October 19, 2020 at 4:35 pm in reply to: Adobe After effects watch folder

    Can the AEP already exist in the watch folder, and then after the script creates the comp and saves the project, the watch folder will take it from there?

  • Danyl Bernard

    October 12, 2020 at 9:08 pm in reply to: Adobe After effects watch folder

    Where is this script created, in After Effects or Media Encoder? I’m not familiar with how a script in Encoder would work (where to place it etc.)

  • Danyl Bernard

    October 6, 2020 at 6:37 am in reply to: Adobe After effects watch folder

    How do you create such a setup with a .aep file in a watch folder, that every time a comp is created in the root folder, it is automatically rendered in AME?

  • Danyl Bernard

    July 7, 2020 at 12:06 am in reply to: Creating comps from folders

    Never mind, I was adding it in the wrong place

    Thank you so much!

  • Danyl Bernard

    July 6, 2020 at 11:41 pm in reply to: Creating comps from folders

    Interesting. It seems like it’s still going through the original array, and it ends up adding the music track under every original layer

    Any suggestions?

    Thanks again

  • Danyl Bernard

    July 6, 2020 at 2:33 pm in reply to: Creating comps from folders

    Yep, works perfectly now. Thank you so much!

    If I could pick your brain one last time, I have a music track in the project bin, that I’d like to add to all of the comps.

    Previously, I was using an expression that looped through the bin and added the track to the bottom of the open comp

    My question is twofold. One, is it possible to loop through the array and add it to all of the comps?

    Two, and more difficult. Can the music track have a simple fade expression based on the comp duration, that fades the sound 3 seconds before each comp ends?

    Thank you once again

    var footageName = "myMusicTrack.wav";
    var myProject = app.project;

    // find the footage item
    var myFootage = null;
    for (var i = 1; i <= myProject.numItems; i++){
    myFootage = myProject.item(i);
    if (myFootage.name == footageName && myFootage instanceof FootageItem){
    break;
    }
    }

    if (myFootage == null){
    alert ("Can't find " + footageName);
    }else{
    myComp.layers.add(myFootage);
    }

    // this moves the newly added layer to the bottom of the panel
    var activeItem = app.project.activeItem;
    var activeLayers=activeItem.layers;
    for(i=1;i<=activeLayers.length;i++){
    if(app.project.activeItem.layer(i).selected){
    app.project.activeItem.layer(i).moveToEnd();
    };

    };

Page 1 of 2

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