How to detect linked smart objects in Photoshop?
hi,
i need detect smart objects linked local files in specific locations javascript in html5 extension. how can this?
consider pseudocode:
if (app.documents.length) { var doc = app.activedocument; (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 need implementations of 2 functions:
1. layer_is_linked_smart_object()
2. get_smart_object_referenced_filepath()
thank in advance!
i found how check if layer smart object:
function layer_is_linked_smart_object(layer) { return layer.kind == layerkind.smartobject; }
still looking way implement get_smart_object_referenced_filepath
More discussions in Extension Builder 3
adobe
Comments
Post a Comment