Answered
Script, count only the text items in a group
H!
I have a layer group with text layers and non text layers
How i can count the text layers only?

H!
I have a layer group with text layers and non text layers
How i can count the text layers only?

Originally in Script, copying text layers contents to clipboard I wanted to filter text layers::
tLs = [].slice.call(activeDocument.activeLayer.artLayers), nmbr = 0
while(tLs.length) nmbr += tLs.shift().kind == LayerKind.TEXT
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.