It’s been several times now, when I try to access some property of some class, I just get some Proxy
object. Now I’m stuck with app.activeDocument.layers
- docs say it should return a Layers
object, but it doesn’t. And that’s not the only case…
How does this work where instead of some proper object we get a Proxy
?
P. S. It seems Document.layerTree
is now gone completely and the only way I found to get a full tree, is
let layers = bp([{
_obj: "get",
_target: [
{_property: "json"},
{_ref: "document", _enum: "ordinal", _value: "targetEnum"}
],
layerInfo: true,
}])[0].json
layers = JSON.parse(layers).layers