Export visible layer names to CSV
Export visible layer names to CSV
Hello. I need help with one script > Export list in one row of visible layers only but without duplicates and no folder names and no artboards names, only a list of visible layers. I tried to find the differen script, but unfortunately nothing works for me. Once I have everything in column, another time I have row but also all duplicates...
Re: Export visible layer names to CSV
How you specify what is duplicate, by a 'copy' in name?
Code: Select all
lrs = []; (function prcssArtLrs(v) {
for(i = (aLs = v.artLayers).length -1; 0 <= i; i--)
(lyr = aLs[i]).visible && lyr.name.indexOf('copy') < 0
&& lrs.push(aLs[i].name); for(i = (lSs = v.layerSets)
.length -1; 0 <= i; i--) prcssArtLrs(lSs[i])
})(activeDocument)
with(File(File($.fileName).path + '/.csv')) open('w'), write(lrs), close()