-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EF_ReplaceMissingFootageWithSolid.jsx
35 lines (28 loc) · 1.24 KB
/
EF_ReplaceMissingFootageWithSolid.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**========================================================================
* ? EF_ReplaceMissingFootageWithSolid.jsx
* @author : Eveline Falcão (https://evelinefalcao.com)
* @email : [email protected]
* @version : 1.0.0
* @createdFor : Adobe After Effects CC 2024 (Version 24.1.0 Build 78)
* @description : Replace all Missing Footage with a white solid with the same size as the layers.
*========================================================================**/
(function replaceMissingFootageWithSolid(){
app.beginUndoGroup("'Replace Missing Footage with Solids'");
var projectItems = app.project.items;
function replaceWithSolid(layer, index){
var color = [1.0, 1.0, 1.0]
var name = 'Solid - ' + index;
var width = layer.width;
var height = layer.height;
var pixelAspect = [1.0];
layer.replaceWithSolid(color, name, width, height, pixelAspect);
}
for(var numItem = projectItems.length; numItem != 0; numItem--){
currentItem = projectItems[numItem];
if(currentItem.footageMissing){
alert(numItem)
replaceWithSolid(currentItem, numItem)
}
}
app.endUndoGroup();
})()