API Version 2 app.activeDocument.layers not show layers

I use in my UXP plugin. API property

require("photoshop").app.activeDocument.layers

With API Version 1 it’s work I have layers but with API Version 2 not
Could suggest how I can get a list of layers?

Do you document opened? And how many layers do you have there?

If you are seeing Proxy instead of Array and this is the problem take a look here: Photoshop.app Properties Returning as null Proxies

1 Like

Thank you ! It is my case

Yes I opened document and I have 10 layers
And thank you for this plugin, alchemist. It helps me a lot !!!