Skip to main content
Legend
October 6, 2019
Question

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

  • October 6, 2019
  • 1 reply
  • 1828 views

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 has been closed for replies.

1 reply

Kukurykus
Legend
October 6, 2019

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?

jazz-yAuthor
Legend
October 6, 2019

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).