Skip to main content
Inspiring
November 15, 2024
Question

Importing 'psd files with layers' using extendscript sdk not showing option to select layers

  • November 15, 2024
  • 1 reply
  • 234 views

While importing PSD files (that contains multiple layers) from the extension panel in 'After effects' using 

 

app.project.importFile

 

will not provide any option to import individual layers, it always imports as merged psd.
We want to provide user option to select any of the layers in the psd file during import.


In premiere pro extension panel,
if we import the same psd file, using the following code, will give us the option to choose the layers.

 

app.project.importFiles

 

1 reply

Bruce Bullis
Community Manager
Community Manager
November 20, 2024

What importOptions are you passing to AE?

emam-devAuthor
Inspiring
September 23, 2025

We are only setting the file option in ImportOptions.

app.project.importFile(new ImportOptions(new File(FilePath)))
Bruce Bullis
Community Manager
Community Manager
September 23, 2025

Any different / improved behavior, using canImportAs(), and (if successful) choosing ImportAsType.COMP_CROPPED_LAYERS? 

 https://ae-scripting.docsforadobe.dev/other/importoptions/?h=importoptions