Skip to content

Instantly share code, notes, and snippets.

@aescripts
Created November 17, 2020 21:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aescripts/25d47ddcdd5a243bc272ad668ea7f9c0 to your computer and use it in GitHub Desktop.
Save aescripts/25d47ddcdd5a243bc272ad668ea7f9c0 to your computer and use it in GitHub Desktop.
#AfterEffects #Script #KBar #Scriptlet Set BG Color of Selected Comps
//Sets the color of the selected comps in the project panel to the bgColor
var bgColor = [0, 0, 0]; //RGB in float (0..1)
for (var i = 0; i < app.project.selection.length; i++) {
if (app.project.selection[i] instanceof CompItem) {
app.project.selection[i].bgColor = bgColor;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment