This content has been marked as final. Show 1 reply
Ok I maybe found at least a way to connect both worlds.
You have to iterate through all layers (by index) and do the following steps:
- make the layer at given index active via ActionManager
- Get a reference to that layer via the DOM (activeDocument.activeLayer)
- Get the layerID of the active layer with the ActionManager
- Save the layerID and DOM layer instance somewhere together (e.g, a model class)
Most parts of that solution can be found in this discussion:
hope this maybe helps someone!