| Designs & Interfaces / Web Interfaces | ©2009-2013 *Razor99 |
The Journal Portal
Browse Journals |
Polls |
deviantART [dee·vee·un'nt·ART]
Keep in Touch!
|
Deviousness |
app.bringToFront();
var docRef = app.activeDocument;
var total_num_layers = 0;
var total_num_groups = 0;
function get_num_layers(obj) {
total_num_layers=total_num_layers+obj.artLayers.length;
total_num_groups=total_num_groups+obj.layerSets.length;
for( var i = 0; i < obj.layerSets.length; i++) {
get_num_layers(obj.layerSets[i]);
}
}
get_num_layers(docRef);
alert("Document contains \n"+total_num_layers+" Layers \n"+total_num_groups+" Groups");
Now save that in a File with .jsx Extension in your PS-Directory in Presets/Scripts. After restarting PS you'll find that Script (the name of the file is the name of the script in the list) under File->Scripts.
Have fun!
can you give me that script of layers ? Thanks
btw. nive torrent-site !