Finding the right layer?

If I have multiple layers within a document, what is the easiest way to find a particular one? Should I just use a while loop or is there an iterator somwhere on the layers that I can get at?

Besides JGoDocument.getDefaultLayer, there’s JGoDocument.findLayer, which looks for a JGoLayer whose getIdentifier matches the given argument.

Thanks, findLayer worked.