-
Extendscript – is FootageItem a layer in a layered PSD
I’m working on a script that does find/replace for missing items in your project. Unfortunately I’m running into a situation replacing layered image sources (psd, ai, etc.) where the usual avItem.replace() function will just replace the item with the whole image, not the layer within the image.
For example:
var item = app.project.item(3); //assuming this is the 'layer' we want to replace
item.replace(new_path)Is there a way to determine if an AvItem is a layer in a layered image, and if so is there a clean way to relink it without losing that relationship?
Thanks,
Spencer