Copy link to clipboard
Copied
Hello everyone!
If within a group layer there are only 6 layers, then do something.
How can I do this script check? Thank you.
if(activeDocument.activeLayer.layers.length==6){
alert("This layerset has 6 layers");
}else{
alert("This layerset has not got 6 layers");
}
Copy link to clipboard
Copied
if(activeDocument.activeLayer.layers.length==6){
alert("This layerset has 6 layers");
}else{
alert("This layerset has not got 6 layers");
}
Copy link to clipboard
Copied
Perfect! Thank you SuperMerlin