JSFL: How to guide all layers, except selected layer?
I'm trying to figure out a way to make a command that guides all layers, except the current layer I have selected. This is what I've cobbled so far, however its fallen flat and I'm unsure how to tackle the syntax from here. Could someone shed some light on how to make the magic happen? Thanks!
var doc=fl.getDocumentDOM();
var tl=doc.getTimeline();
var layers=tl.layers;
for(var i=0;i<layers.length;i++)
{
if(an.getDocumentDOM().selection)continue;
else layers[i].layerType="guide";
}
