Skip to main content
Legend
Oct 6, 2019 11:06 AM UTC
Question

How to get layers refs from inactive document (AAM)?

Good afternoon! I am writing a script that looks for layers with certain characteristics among open documents.

Is there a way to get references to layers of an inactive document through AAM (now my script switches to the next document in advance, but for the user this mode of operation is not very comfortable).

There are a lot of documents (usually more than 20, in each ~ 50 layers) - the DOM makes it possible to access layers of inactive documents, but it works very slowly when you need to iterate over all layers.

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Kukurykus
Legend
Oct 6, 2019 5:14 PM UTC

If I'm right you can't access layers from the document that is not active at the time. BTW what stands for 1st or 2nd 'A' in AAM?

Translate
jazz-yAuthor
Legend
Oct 6, 2019 6:04 PM UTC

Adobe Action Manager. I'm used to calling through double A 🙂

In fact, if layers in another document were previously selected, then their referecnes can be obtained through targetLayers of the desired document. However, it’s still not nice to select all layers without switching to the document 😞

I’m trying to understand how xbytor receives layer descriptions from other documents in GetterDemo.lsx (it seems that it is implemented exactly as I need it).

Translate