首页 > 解决方案 > Photoshop 按名称选择图层

问题描述

在 Photoshop 中,当我尝试按名称选择图层时,在控制台中

activeDocument.artLayers.getByName('Layer1');


Uncaught TypeError: Cannot read property 'getByName' of undefined at <anonymous>:1:20

是什么导致了这个错误?我发现的每一段代码都会给出同样的错误。

标签: javascriptphotoshop

解决方案


推荐阅读