-
import files with getFiles – multiple extensions/file types
I want to import only mp4 and mpg files. I use this simple code where I can decide which file type to import but I don’t know how to allow more file extensions to be imported. Example below imports only .mp4 files. Putting “or” (||) between file types doesn’t help.
var importVideoExtension = "*.mp4";
var a = Folder(filePath);
if(a != null){
var b = a.getFiles(importVideoExtension);
var c = b.length;
for(var i = 0; i < c; i++){
imported[i] = importAFile(b[i]);
imported[i].parentFolder = footage;
}
}