Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How to import exr via script

Community Beginner ,
Aug 12, 2021 Aug 12, 2021

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.

TOPICS
Scripting

Views

33

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 12, 2021 Aug 12, 2021

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);

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

Sorry, my bad. "not working" meant it was not imported at all.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 13, 2021 Aug 13, 2021

Copy link to clipboard

Copied

LATEST

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));

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines