Skip to main content
Inspiring
Nov 15, 2024 1:57 PM UTC
Question

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

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

 

3 replies

Bruce Bullis
Legend
Nov 20, 2024 4:24 PM UTC

What importOptions are you passing to AE?

Translate
emam-devAuthor
Inspiring
Sep 23, 2025 2:02 PM UTC

We are only setting the file option in ImportOptions.

app.project.importFile(new ImportOptions(new File(FilePath)))
Translate
Bruce Bullis
Legend
Sep 23, 2025 2:09 PM UTC

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

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

Translate