Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
5

How to duplicate a composition in after effects and make it independent from the original

Community Beginner ,
Apr 04, 2013 Apr 04, 2013

Hi, im trying to duplicate a composition in after effects and make it independent from the original but it seems to be imposible.. im working on CS5.

Can somebody help me PLEASE??

Thanks

TOPICS
How to
229.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 04, 2013 Apr 04, 2013

As Andrew said, select a comp in the Project Panel, not in the timeline, and press Ctrl/Cmnd + D. You'll get a new comp with a number or copy added to the name. This comp is completely independent of the original one but it contains all of the same footage.

If the comp you duplicated contains other comps nested in the timeline then these nested comps must also be duplicated and their duplicates used to replace the original nested compositions in the duplicate comp. The script referred to makes t

...
Translate
New Here ,
Oct 26, 2023 Oct 26, 2023

I copied all the layers/rows of the original comp I wanted to duplicate, then selected (composition>new), and pasted the components into it. Then I dragged the new comp back into my timeline from the Project and this stopped linking the two comps together. Hope that helps! 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 29, 2023 Nov 29, 2023

@Ciara Tobin Tried that. Didn't work. I'll give the script mentioned above a shot. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 25, 2024 Jan 25, 2024

I have the same problem - duplicating the composition in the project panel does not help if you have a composition with too many adjustments - cuts, keyframes, effects etc., that you have to add to the new composition.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 26, 2024 Jul 26, 2024

This is a pefect solution for that!
https://youtu.be/2nX-dVSIr7g

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 29, 2024 Jul 29, 2024

No, it is not - as it is a paid plugin. AND you have to duplicate in the panel, which does not duplicate adjustments.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2024 Oct 03, 2024

here is a script I created to do this - just select the comp you want to duplicate in your project panel and run this script file - if you don't know how to make a jsx from this just open TextEdit on a Mac (not sure what it is on Windows) and paste this > in the top bar click Format and select Make Plain Text > save it > go into your Finder and rename the file with .jsx at the end, and then you can run it in after effects enjoy!

// Duplicate selected comp and all nested comps
(function() {
    var proj = app.project;

    // Function to recursively duplicate a composition and all nested comps
    function duplicateComp(comp, compMap) {
        // If comp is already duplicated, return the duplicated one
        if (compMap[comp.id]) {
            return compMap[comp.id];
        }

        // Duplicate the main comp
        var duplicatedComp = comp.duplicate();
        duplicatedComp.name = comp.name + "_copy";

        // Add the duplicated comp to the map
        compMap[comp.id] = duplicatedComp;

        // Loop through all layers to find nested comps
        for (var i = 1; i <= duplicatedComp.numLayers; i++) {
            var layer = duplicatedComp.layer(i);

            if (layer.source && layer.source instanceof CompItem) {
                // Recursively duplicate the nested comp
                var nestedComp = layer.source;
                var duplicatedNestedComp = duplicateComp(nestedComp, compMap);

                // Replace the original nested comp with the duplicated one
                layer.replaceSource(duplicatedNestedComp, false);
            }
        }

        return duplicatedComp;
    }

    app.beginUndoGroup("Duplicate Comp with Nested Comps");

    if (proj.selection.length > 0 && proj.selection[0] instanceof CompItem) {
        var selectedComp = proj.selection[0];

        // Map to store duplicated comps to avoid duplicating the same comp multiple times
        var compMap = {};
        duplicateComp(selectedComp, compMap);

        alert("Duplicate process completed!");
    } else {
        alert("Please select a composition in the Project panel.");
    }

    app.endUndoGroup();
})();

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines