Since Illustrator has sublayers, it would be nice to be able to call these with:
activeDocument.layers["name"].layers["name"]
Right now I'm doing the following:
for(var i=0; i<activeDocument.layers.length; i++){
for(l=0; l<activeDocument.layers[i].children.length; l++){
if(activeDocument.layers[i].children[l].name=="str"){
l=activeDocument.layers[i].children.length;
addTileset(activeDocument.layers[i]);
}
}
}
But it would be much handier like:
for(var i=0; i<activeDocument.layers.length; i++){
if(activeDocument.layers[i].layers["str"]){
addTileset(activeDocument.layers[i]);
}
}
Or/and make it possible to point to a child by name, which would be extremely handy also:
activeDocument.layers["Layer 1"].children["childname"]
I hope I have my facts straight on this one!