ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

set background color of multiple comps?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tristan Summers
set background color of multiple comps?
on Jan 30, 2019 at 11:13:22 am

HI
I am used to using dr_CompSetter to set parameters of mutiple comps at once, but it does not do BAckground color.
Does anyone know of a way to do this?

background to the background:
I set background colour to make some black elements visible.
Resolume's DXV3 codec only seems to premultiply correctly when background colour is black. Other colours remain in the entirely transparent areas, not just the semi-transparent pixels, so I assume it has to premult with black only. I have about 400 comps to change.
I could probably just render straight but I want to set background colour anyway.


Return to posts index

Dan Ebberts
Re: set background color of multiple comps?
on Jan 30, 2019 at 5:48:19 pm

A little utility script like this will set the background color to black for all the comps in your project:


function setBGColor(){
for (var i = 1; i <= app.project.numItems; i++){
if (app.project.item(i) instanceof CompItem){
app.project.item(i).bgColor = [0,0,0];
}
}
}
setBGColor();



Dan



Return to posts index

Tristan Summers
Re: set background color of multiple comps?
on Jan 30, 2019 at 5:50:12 pm

Amazing. Thank you.
(I must learn javascript)


Return to posts index

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