So I've been looking around and trying to find a way of importing image sequences in Adobe Premiere Pro using extendscript.
I can import separate single files using:
app.project.importFiles(new Folder(folder_path));
But I can't give an option of importing these images as a sequence.
I tried using opts = new ImportOptions(new File("path_to_image")); opts.sequence = true;
and calling this within
app.project.importFiles(opts)
but Premiere doesn't seem to support ImportOptions, I keep getting an error stating "Import Options does not have a constructor"....
I'm assuming Premiere Pro doesn't support ImportOptions?
Is there any other way of importing an image sequence using app.project.importFiles
?
Thanks!
From Bruce Bullis over at Adobe (https://forums.adobe.com/message/9752499#9752499):
The last parameter to app.project.importFiles is a 0 or 1, to indicate whether or not to "interpret all the files referenced in the array-to-be-imported, as an image sequence".
See usage in PProPanel:
Samples/Premiere.jsx at master · Adobe-CEP/Samples · GitHub: https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx#L201
-->
app.project.importFiles(importThese, 1, // suppress warnings targetBin, 0); // import as numbered stills