Activity › Forums › Adobe After Effects › Add all open comps to render queue SHORTCUT
-
Add all open comps to render queue SHORTCUT
Posted by Alfredo Bautista on May 27, 2016 at 1:13 pmHello guys
I usually have to type some titles on different comps. When I’m finished, i have to manually add each comp to the render queue using the “cmd + ctrl +m shortcut” or the “cmd + shift + / shortcut”.
But i was wondering if there’s a shortcut or script that enables me to add all the comps to the queue at the same time without having to go one by one.
This is time consuming and it could also lead to some mistakes as you can easily skip one of them and don’t notice.Thanks in advance.
Alfredo Jair
Max Haller replied 1 year, 11 months ago 4 Members · 5 Replies -
5 Replies
-
Alfredo Bautista
May 27, 2016 at 3:18 pmI’m really glad you answered so fast Dave. My problem is that each day i have to render from 10 to 20 different comps from a project that has like 500 comps. So, searching and selecting them one by one in the project panel takes more time than adding them one by one from the timeline using the “cmd + ctrl + m” shortcut. That’s why i was wondering that in this specific case it would be nice to have a shortcut that adds all the open comps in the timeline to the render queue without having to select them on the project panel.
I added a picture of my project panel for reference.
I don’t know if that option even exists.
Thanks!Alfredo Jair
-
Jay Mueller
May 28, 2016 at 1:26 pmAs you work, add a word to the comps you know you will render, something unique. Ie: RENDER. then you could use the find feature to only show the comps you’d like to render select all and shortcut them to render que.
-
Greg C neumayer
May 30, 2016 at 5:51 pmThat sounds like a good case for someone to write a script.
But notwithstanding the other good solutions, I like to add an underscore to any of my top-level comps that I’ll be rendering or at least dropping into a master comp. I also add the word “main” for the top level, if I only have one eventual output comp. This helps me identify them for rendering, as well as keeps them floated to the top of my Project Window for easy access when moving between main sections. Just a workflow idea.
e.g. : _MainProject, _Section1, _Section2 etc.
-
Max Haller
May 23, 2024 at 7:08 pmI know this thread is nearly a decade old. HOWEVER! I was just wondering the same thing today and set out to write a script that would do this.
I’ve tested it a few times in my own projects and this seems to work! The trickiest part was getting it to loop through the open comps. There’s not a built in way to do that as far as I could tell. So instead it adds the active comp, closes it and then adds the next active comp. This effectively will loop through all the comps you have open in the timeline panel.
// Add Active Comp to Render Queue and Move to Next
function addActiveCompToRenderQueueAndMoveToNext() {
// Start the undo group
app.beginUndoGroup(“Add Active Comp to Render Queue and Move to Next”);
// Keep track of processed comps
var processedComps = [];
// Function to check if an array contains an element
function arrayContains(array, element) {
for (var i = 0; i < array.length; i++) {
if (array[i] === element) {
return true;
}
}
return false;
}
// Function to add the active comp to render queue and move to the next
function processActiveComp() {
var activeComp = app.project.activeItem;
if (activeComp && activeComp instanceof CompItem && !arrayContains(processedComps, activeComp.id)) {
// Add the active composition to the render queue
app.project.renderQueue.items.add(activeComp);
// Mark this comp as processed
processedComps.push(activeComp.id);
// Close the active comp
activeComp.openInViewer();
app.executeCommand(app.findMenuCommandId(“Close”));
return true;
} else {
return false;
}
}
// Loop until no more active comps are found
while (processActiveComp()) {
// Do nothing, the loop will continue until all comps are processed
}
// End the undo group
app.endUndoGroup();
}
// Execute the script
addActiveCompToRenderQueueAndMoveToNext();
Reply to this Discussion! Login or Sign Up
