ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Is there anyway to get AME to inherit the bg colour of a comp from AE

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sean Cox
Is there anyway to get AME to inherit the bg colour of a comp from AE
on Mar 7, 2017 at 3:25:03 pm

Hello!

So, I'm on a job where I have a huge number of png sequences with alpha channels. I have to render each of these as a new png sequence with a gray background. If I had less to do, I would bring them into After Effects, stick a solid behind them and be done with it, but I have hundreds of these to render. So essentially I'm wondering if there's any way to either:

Get AME to inherit the bg colour from the comp settings in AE (Which for all my looking around I can't seem to be able to find a method for)

or

Maybe locate some sort of script which allows me to generate a solid of the same colour as the background of multiple comps at once.

If anyone can help at all or has any ideas I'd hugely appreciate it. Don't really fancy doing them all one by one!

Thanks,

Sean


Return to posts index

Walter Soyka
Re: Is there anyway to get AME to inherit the bg colour of a comp from AE
on Mar 7, 2017 at 3:48:55 pm

It cannot be done. You'll have to add solids.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Dave LaRonde
Re: Is there anyway to get AME to inherit the bg colour of a comp from AE
on Mar 7, 2017 at 3:56:25 pm
Last Edited By Dave LaRonde on Mar 7, 2017 at 4:20:38 pm

What is so tough about the following:
  • Assuming PNGs of varying sizes, drag one-by-one onto the Make Comp icon at the bottom of the project pane. The comps thus created assume the name of the PNGs.
  • Make a gray solid for a background on your comp with the largest dimensions. Then double the solid's dimensions (just a safety measure).
  • Copy the solid.
  • Paste it into the other comps, making it the bottommost layer.

Even if I had 250 comps that needed it, I could be done in well under an hour, taking time out for a cup of coffee midway through.

Sometimes I don't get peoples' obsessions with automation.

Dave LaRonde
Promotion Producer
KGAN (CBS) & KFXA (Fox) Cedar Rapids, IA


Return to posts index


Walter Soyka
Re: Is there anyway to get AME to inherit the bg colour of a comp from AE
on Mar 7, 2017 at 4:55:30 pm

[Dave LaRonde] "Sometimes I don't get peoples' obsessions with automation."

I love automation. I believe computers should do repetitive things so I don't have to... but I agree 100% that oftentimes, elbow grease is the fastest solution.

All that said, here's a script that adds a comp-sized solid that matches the background color of each selected comp in a project:

// add a background-colored, comp-sized solid to every selected comp in the project

app.beginUndoGroup("Solids... solids everywhere!");

for (i = 0; i < app.project.selection.length; i++) {
if (app.project.selection[i] instanceof CompItem) {
comp = app.project.selection[i];
solid = comp.layers.addSolid(comp.bgColor, comp.name + " BKG Solid", comp.width, comp.height, comp.pixelAspect);
if (comp.numLayers > 1) solid.moveAfter(comp.layers[comp.numLayers]);
}
}

app.endUndoGroup();


Copy and paste that into a text editor, then save it as something like "Add BKG Solids.jsx".

To use it, select the comps you want to add the background solid to, then invoke the script from the File > Scripts > Run script file... menu.

Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]