In ecma Scripting How do I check if the layer is empty
Posted: Wed Mar 29, 2017 8:13 am
Is there any method to check if the layer contents are empty through ecma script when the layer is present.
Code: Select all
var ids = doc.queryLayerEntities(layerId, true);
if (ids.length===0) {
// there are no entities in any blocks on this layer
}