[JSX] Remembering locked layers/pathitems/groupitems for easy recall across documents
Hi all,
I'm working on a script for some complex files with multiple layers, sublayers, groups, pathitems etc. To operate on the items I need to, I first iterate through the doc and unlock and make visible/unhidden all page items and layers. For the purposes of the script, I am duplicating some of the main layers to a new document. Rather than having to iterate through all page items again, is there an easier way to recall which may have been locked? I thought about passing the specific items to a layer, but since I'm copying to a new doc, I doubt those items would be valid. Is there a way to generate a list of previously locked items and their index chain within their respective parent? Or some other more obvious way that I might not be considering? Appreciate it.

