top of page

How to Create Multiple Compositions at Once in After Effects Using a Script

Updated: Apr 4



Adobe After Effects is a powerful tool for motion graphics, animation, and video editing. When working on multiple client deliverables, creating compositions manually for each format can take a lot of time.

This is where batch scripting becomes a game-changer.

In this tutorial, I’ll show you how to create multiple compositions with custom names and resolutions in one go, while automatically organizing each comp inside its own folder.

Why Use a Script for Multiple Compositions?

When creating content for different platforms, you often need multiple output sizes such as:

  • YouTube – 1920 × 1080

  • Instagram Post – 1080 × 1080

  • Reel / Story – 1080 × 1920

  • Facebook Ad – 1200 × 628

Creating these one by one is repetitive and time-consuming.

With a simple script, you can create all of them instantly.

This improves:

  • workflow speed

  • project organization

  • consistency

  • productivity

The Script Code

Here’s the complete batch script: <>JavaScript: app.beginUndoGroup("Batch Create Multiple Comps");


var input = prompt(

"Enter comps as Name,Width,Height | separate each with ;",

"YouTube,1920,1080;Instagram Post,1080,1080;Reel,1080,1920"

);


if (input) {

var compList = input.split(";");

var duration = 10;

var frameRate = 30;


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

var data = compList[i].split(",");


var compName = data[0];

var compWidth = parseInt(data[1]);

var compHeight = parseInt(data[2]);


var folder = app.project.items.addFolder(compName);


var comp = app.project.items.addComp(

compName,

compWidth,

compHeight,

1,

duration,

frameRate

);


comp.parentFolder = folder;

}

}


app.endUndoGroup(); How It Works

When the script runs, a popup appears asking for multiple composition details.

Enter the data in this format:

YouTube,1920,1080;Instagram Post,1080,1080;Reel,1080,1920;Facebook Ad,1200,628

Each composition is separated by a semicolon ;.

Inside each entry:

Name, Width, Height

Output Result

The script automatically creates:

📁 YouTube🎬 1920 × 1080

📁 Instagram Post🎬 1080 × 1080

📁 Reel🎬 1080 × 1920

📁 Facebook Ad🎬 1200 × 628

Each composition is neatly placed inside its own folder with the same name.

This keeps the project panel clean and professional.

Why This Workflow Is Useful

This script is especially useful for:

  • social media ad campaigns

  • multiple client exports

  • brand format variations

  • motion graphics templates

  • fast production pipelines

Instead of spending 10–15 minutes on setup, everything is ready in seconds.

Final Thoughts

Automation inside Adobe After Effects can significantly improve your workflow.

Using scripts like this not only saves time but also helps maintain a more organized project structure.

For motion designers, video editors, and freelancers, this is a simple yet powerful way to work smarter.

 
 
 

Comments


Do not hesitate to contact me to discuss a possible project or learn more about my work.
Contact
Name: Daniel Alex
Email: danielalex.visual@gmail.com
Phone No: 6385523322
bottom of page