Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects New Compositions from sources with numbers in their name

  • New Compositions from sources with numbers in their name

    Posted by Greg Hirsh on February 6, 2024 at 3:15 am

    Hi everyone,

    Is there a setting (or other means) of adjusting the following automatic behavior in After Effects?

    Let’s say I have a bunch of source footage who’s original names each end in a sequence number, for example:
    SourceMovie_001

    SourceMovie_002

    SourceMovie_003

    SourceMovie_004

    SourceMovie_005

    In the most recent versions of After Effects, if I create new compositions from these source files the new compositions will be named, SourceMovie_006, SourceMovie_007, SourceMovie_008, etc. (This will happen, even if I only create one composition at a time – for example, if I were to simply drag the file named SourceMovie_001, and only that file, to the “create new composition” button, I would get a new composition named SourceMovie_006. Somehow it is taking the highest sequence number from the list of sources into account when it decides what to autoname the new composition)

    What I want, is for After Effects to create new compositions that preserve the name of the source that creates it (i.e. what I want is for it to create new compositions who’s names are SourceMovie_001, SourceMovie_002, SourceMovie_003, etc.). Having to rename each and every new composition (especially since I frequently am dealing with 100s of source files at a time) is unbelievably annoying, to say the least.

    I swear that After Effects did not used to auto increment new composition names like this (at least it did not auto increment based on the highest number in a series of source file names).

    If any one knows of a way to change this, your help will be so, so, so appreciated. I have scoured the preference options and have spent hours on Google without any luck. I have come to the forum because I feel confident that this is a somewhat new “feature.” I also have (what is likely a phantom memory) of a config file somewhere that let you change this.

    Thanks in advance!

    Brie Clayton replied 2 years, 6 months ago 4 Members · 6 Replies
  • 6 Replies
  • Hector Vera

    February 6, 2024 at 3:53 am

    This one is tricky, after searching a YouTube video of someone giving a tutorial on right clicking the project tab on After Effect, selecting “New Composition” for example, this guy already had Comp 1 and Comp 2 created, after clicking “New Composition”, the default name would be Comp 3 immediately so you will have to rename it by the correct number it was perserved to if you want it to perserve the original name but of course if you already had a composition named that, it will not work. Try starting over and pass in each compositions in the order it should be when no other compositions has that same name yet and see if it helps. Not sure if it helps but like I said, its tricky and seems to be no way around to perserve it besides not having a composition of the same name there. Hope you are able to get around this soon and best of luck!

  • Walter Soyka

    February 6, 2024 at 3:56 am

    I can’t remember when Ae didn’t work like this, but you don’t normally run into this because of another special case — when you create a comp from a file, Ae drops the dot and file extension in the newly-created comp name. Maybe you’re seeing this if the assets are named such that they don’t have file extensions?

    Anyway, here’s a quick script that will rename the selected comps in your project panel, based on the name of the first layer in each. It will also optionally strip a file extension (a dot and any number of alphabetical characters at the end of the name only).

    app.beginUndoGroup("Rename selected comps with first layer name");

    var stripDotExtension = true;

    var projectSelection = app.project.selection;

    var processedCompsCount = 0;

    for (var i in projectSelection) {

    if (projectSelection[i] instanceof CompItem) {

    projectSelection[i].name = projectSelection[i].layer(1).name;

    if (stripDotExtension) {

    projectSelection[i].name = projectSelection[i].name.replace(/(\.[a-zA-Z]*$)/, "");

    }

    processedCompsCount++;

    }

    }

    writeLn("Processed " + processedCompsCount + " comp" + (processedCompsCount != 1 ? "s" : "") + ".");

    app.endUndoGroup();

  • Greg Hirsh

    February 7, 2024 at 12:44 am

    Wow!! Thank you so, so much, @Walter Soyka ! This script works, solves the problem, and will literally save me HOURS!!!. I can not thank you enough. Very, very much appreciated.

  • Greg Hirsh

    February 7, 2024 at 12:57 am

    Thank you so much for taking the time to look in to this, @Hector Vera ! Unfortunately, (and this is what is so weird – and I think what is new behavior), After Effects not only looks at comps that have already been made when deciding what a new comp (with a similar name)’s new sequence number will be, it also now looks at the sequence numbers of the source files them selves. So, in other words, even if I start over and have not created any comps yet, when I make the very first comp of the project (using the example file names from my post at the top, SourceMovie_001, SourceMovie_002, SourceMovie_003, SourceMovie_004, and SourceMovie_005 – again these are the names of the files themselves, no comps exist yet) the first composition will be named SourceMovie_006 (it doesn’t matter which of the source files I used to create the comp, it just names it using the next number in the sequence because it’s taking the source file sequence numbers into account now).

    Edit: I also realize now (if you see my post below) that there was a kind of user error involved on my part.

    Thank you, again, for trying to help research this!

  • Greg Hirsh

    February 7, 2024 at 1:15 am

    Also, @Walter Soyka as a follow up, having gone back and looked at everything again); it turns out you’re right about what is causing this. There is a simple (and new to my workflow) combination of import options that I now realize are the cause of the difference. I’ve been bringing image sequences in and checking the “Force alphabetical order” button. This brings them in without appending the file extension and frame range to their name (which it would otherwise do if the button was left unchecked). In this scenario, it auto increments sequence numbers of new comps of the same naming scheme. If I don’t check the “”Force alphabetical order” button, comps created from the source files will preserve the original name and number (presumably because SourcMovie_001_[01001-010802].exr is a different string then SourceMovie_001). Alternatively if I check both the “Force alphabetical order” button (which I find to be good practice) and the “Create Composition” button (with the Import as Footage option in the following dialogue box) a composition with same name and number is created. This ALSO solves my problem. Either way, HOURS SAVED and I thank you!!!

  • Brie Clayton

    February 7, 2024 at 3:01 pm

    Thanks for this solve, Walter!

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