Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

count selected layers?

Contributor ,
Nov 26, 2025 Nov 26, 2025

Hello everyone,
I want to create a script I map to Ctrl+E that would collapse selected layers if more than one layer is selected, otherwise do the regular Expand.
Is it possible to know how many layers are highlighted in the Layers panel?

TOPICS
Scripting
110
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Nov 27, 2025 Nov 27, 2025

No, I don't think collapsing layers or detecting highlighted layers is possible at the moment

Translate
Adobe
Community Expert ,
Nov 27, 2025 Nov 27, 2025

No, I don't think collapsing layers or detecting highlighted layers is possible at the moment

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 27, 2025 Nov 27, 2025
LATEST

well, detecting highlighted layers "maybe", I'd give it a 5% chance

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines