Code: Select all
for( var c = 0; c < doc.layerComps.length; c++ ){
if( doc.layerComps[c].selected == true ){
currentLayerCompID = c;
break;
}
}
Thanks!
And a bonus question, is there a way to create a new layer comp and position it right after the one that's currently selected? Because LayerComp.add makes one at the end of the list.