If you want to stay in touch and hear about new tools & resources, then signup here →
How to use the script
Always check code before running it on your computer. Even basic scripts like this one. If you’re not a developer, ask an LLM like ChatGPT, Claude, or Gemini to verify it for you.
Copy the code below and develop your own version. Replace 'COMP_NAME_HERE' with your composition's name. If you have trouble making this work, paste the code into an LLM and explain what's happening.
/*
Adds a specified composition to the current playhead time at the top
of the layer stack in the active composition.
Please replace 'COMP_NAME_HERE' with your composition's name.
If you have trouble making this work, paste the code into an LLM
and explain what's happening.
Script by Jack Vaughan (jackvaughan.com/tools)
*/
(function() {
var proj = app.project;
var compName = "COMP_NAME_HERE";
var targetComp = null;
// Search for the specified composition
for (var i = 1; i <= proj.numItems; i++) {
if (proj.item(i) instanceof CompItem && proj.item(i).name === compName) {
targetComp = proj.item(i);
break;
}
}
if (targetComp) {
var activeComp = proj.activeItem;
if (activeComp && activeComp instanceof CompItem) {
app.beginUndoGroup("Add Specified Composition");
var newLayer = activeComp.layers.add(targetComp);
newLayer.startTime = activeComp.time;
app.endUndoGroup();
} else {
alert("No active composition selected.");
}
} else {
alert("Composition '" + compName + "' not found.");
}
})();