With this, you can get smart object comps of all smart objects in document with IDs and names without opening them var docRef = new ActionReference(); var desc = new ActionDescriptor(); var JSONid = stringIDToTypeID("json"); docRef.putProperty(charIDToTypeID('Prpr'), JSONid); docRef.putEnumerated(stringIDToTypeID("document"), charIDToTypeID('Ordn'), charIDToTypeID('Trgt')); desc.putReference(charIDToTypeID('null'), docRef); desc.putBoolean(stringIDToTypeID("compInfo"), false); // just return the Layer Comp settings desc.putBoolean(stringIDToTypeID( "expandSmartObjects" ), true); // return Layer Comp settings for each layer desc.putBoolean(stringIDToTypeID( "getCompLayerSettings" ), false); // return Layer Comp settings for each layer var result = executeAction(charIDToTypeID( "getd" ), desc, DialogModes.NO).getString(JSONid); objectFromJSONString > placed > (item) > comps This is code for generator plugin. Will work by default in modern Photoshop. smartObjectMore property work properly in CC2015.5 and higher. In lower version you have only "smartObject" property with less info.
... View more