With DOM code one can use a function to iterate through the LayerSets.
But that can be fairly slow, depending on the file, wherefore Action Manager code may be preferable, but that can look quite daunting when one is unfamiliar with it.
With DOM code one can use a function to iterate through the LayerSets.
But that can be fairly slow, depending on the file, wherefore Action Manager code may be preferable, but that can look quite daunting when one is unfamiliar with it.