Page 1 of 1

remove missing footage from project

Posted: June 26th, 2007, 11:18 am
by hidden
Hi there,

is there a way to remove all missing footage items from my project?
I have lots of items imported from older project that I do not need as reference. It would be nice to have a way to avoid deleting them one by one...

thanks a lot


:)

Posted: June 30th, 2007, 2:15 pm
by Paul Tuersley
Presumably you're looking for something more specific than the built in File > Remove Unused Footage and Reduce Project?

There was already a script for removing unused solids viewtopic.php?t=17 and page 33 of the AE7 Scripting guide documents the AVItem footageMissing attribute. Combine the two and you get:

Code: Select all

{ 
	// Go backwards through all the items in the project 
	// Go backwards because we'll be deleting items from the list. 
	for (i = app.project.numItems; i >= 1; i--) { 
		var cur_item = app.project.item(i); 
		if (cur_item.typeName == "Footage" && cur_item.footageMissing == true) {
			cur_item.remove(); 
		} 
	} 
}