Copy link to clipboard
Copied
I am able to import any image as a Footage into After Effects by script with `
im_opt = new ImportOptions(new File(image_path));
app.project.importFile(im_opt)`
This is not working with importing .exrs, someone recommended import .exr as a comp (eg.with ```im_opt.importAs = ImportAsType.COMP```
But that doesn't seem to work neither. Does anyone succeed with importing .exr via script?
Thanks.
Copy link to clipboard
Copied
By 'not working' do you mean it imports but not as a sequence?
('not working' is my least favourite description of a problem!)
var theFile = File.openDialog();
im_opt = new ImportOptions(theFile);
im_opt.sequence = true;
app.project.importFile(im_opt);
Copy link to clipboard
Copied
Sorry, my bad. "not working" meant it was not imported at all.
Copy link to clipboard
Copied
It's hard to know what the issue might have been without seeing the image_path.
But my example worked as expected for me and you can always examine the file path in there with something like this after the File.openDialog which may give you some insight into what was wrong before.
alert(theFile.fsName);
alert(File.decode(theFile.absoluteURI));