Skip to main content
Inspiring
March 4, 2021
Question

Re-linking of Photoshop file doesn't re-link to correct layer

  • March 4, 2021
  • 1 reply
  • 1837 views

When we try to relink a photoshop layer using a backed up file with different name, After effects doesn't automatically link to the correct layer.

We are using the following code for relinking the psd file.

 

app.project.items[1].replace(new File("psdFilePath"))

 

After the relink, instead of a single layer the whole psd file layers will get merged on to the first item.

Same workflow in Premiere pro, after relinking- Premiere Pro detects the original layer instead of merging all layers.

 

Is there any way to point to the respective layer of a PSD during relink media in After effects,

Or can this be added as an enhancement in After effects

 

Thanks.

This topic has been closed for replies.

1 reply

Bruce Bullis
Community Manager
Community Manager
October 12, 2022

We've already discussed this issue with the AE team. The recommended approach = import the new .psd file, linking to the correct layer, and replace existing references (to the old .psd file/layer) in comps, with references to the newly-imported file/layer combination.

emam-devAuthor
Inspiring
October 12, 2022

Hi Bruce,

Thank you for the response.


We are not able to get 'Layer Options' popup to select the layers from AEFT extendscript API.
Always the psd will come as a merged single item, when we use the app.project.importFile(importOptions).

Is there any specific parameter needs to be added in the 'importOptions' to get the layer options during import?

 

Thanks

Bruce Bullis
Community Manager
Community Manager
October 12, 2022

I think you're looking for ImportAsType.COMP, or ImportAsType.COMP_CROPPED_LAYERS...