What are
var layernames = {
'Bob':'Bob Front'
};
and
if (layernames[currentLayer.name])
supposed to do? Is that even JavaScript?
Also you should consider that Layers that reside in a Group are filial to the Group in DOM, not the Document.
What are
var layernames = {
'Bob':'Bob Front'
};
and
if (layernames[currentLayer.name])
supposed to do? Is that even JavaScript?
Also you should consider that Layers that reside in a Group are filial to the Group in DOM, not the Document.