• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

340

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

 

Votes

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.

Votes

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

Votes

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