javascript - Photoshop 按名称选择图层
问题描述
在 Photoshop 中,当我尝试按名称选择图层时,在控制台中
activeDocument.artLayers.getByName('Layer1');
Uncaught TypeError: Cannot read property 'getByName' of undefined at <anonymous>:1:20
是什么导致了这个错误?我发现的每一段代码都会给出同样的错误。
解决方案
推荐阅读
- heroku - 有没有办法在 Hasura graphql 中为整个模式(整个表)设置权限,而不是授予每个表的权限?
- php - Composer 安装 VirtualAlloc() 失败:[0x00000008]
- c++ - 如何在用户给定号码的前面和后面添加一个数字?C++
- python-3.x - 无法导入名称“AsyncIOSchedular”
- android - 如何在 Android Studio 中清除 RequestQueue 缓存?
- c++ - Yocto中的虚拟键盘顶部黑屏
- scala - scala.Char 在隐式范围内没有可用的 play.api.libs.json.Format 实例
- javascript - 如何修复 IE8 中的“indexof”
- mysql - 如何永久禁用外键检查
- sql - 执行SQL查询时无法引用表中的列:列不存在