How to detect linked smart objects in Photoshop?
Hi,
I need to detect smart objects linked to local files in specific locations from javascript in HTML5 extension. How can I do this?
Consider this pseudocode:
if (app.documents.length)
{
var doc = app.activeDocument;
for (var ilayer = 0; ilayer < doc.artLayers.length; ilayer++)
{
var layer = doc.artLayers[ilayer];
if (LAYER_IS_LINKED_SMART_OBJECT(layer))
{
var localFilePath = GET_SMART_OBJECT_REFERENCED_FILEPATH(layer);
}
}
}
Here I need implementations of two functions:
1. LAYER_IS_LINKED_SMART_OBJECT()
2. GET_SMART_OBJECT_REFERENCED_FILEPATH()
Thank you in advance!
