I need to check if there are 2 ore more layers selected.
And just the layers, there don't have to be any objects selected.
////////
var selectedItems = document.getItems({
type: Layer,
selected: true
});
if (selectedItems.length > 1) {
print(selectedItems.length);
}
///////
The above thing doesn't work cause selected: true asks for a object to be selected.
But if i remove the line then it doesn't matter if i have a layer selected or not, it will always report 6 ( since i had 6 layers).
Is it possible?
P.S. after that i have to perform a action first on 1 of the layers and after that the other layer.