> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取图层所属组

Photoshop 版本：Photoshop 版本支持2025✅2024✅2023✅2022✅2021✅2020✅CC2019✅CC2018✅CC2017✅

# # 获取图层所属组

## 描述

该指令获取 PS 图层所属组

## 参数配置

### 指令输入

Photoshop 文件路径

图层名: 字符串 ; 图层的名称, 找不到该图层会报错

<img src="https://mintcdn.com/bazhuayu-rpa-docs/B9u8WDpPUjhqiVZ1/helpcenter/commands/custom-commands/AJpKshiX/images/1RpokBz8-01.png?fit=max&auto=format&n=B9u8WDpPUjhqiVZ1&q=85&s=da658b61c509202a2fc6112faedfca97" alt="image" width="664" height="430" data-path="helpcenter/commands/custom-commands/AJpKshiX/images/1RpokBz8-01.png" />

### 指令输出 layer\_group

输出字典类型

\{

"success": true,

"file\_path": "D:\444.psd",

"file\_name": "444.psd",

"target\_layer": "123",

"layer\_found": true,

"layer\_group": "组 1",

"all\_groups": \[

"组 1",

"组 2"

]
}<img src="https://mintcdn.com/bazhuayu-rpa-docs/B9u8WDpPUjhqiVZ1/helpcenter/commands/custom-commands/AJpKshiX/images/1RpokBz8-02.png?fit=max&auto=format&n=B9u8WDpPUjhqiVZ1&q=85&s=5ee7463569a2c428fd0867400f937a92" alt="image" width="1062" height="202" data-path="helpcenter/commands/custom-commands/AJpKshiX/images/1RpokBz8-02.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
