Skip to main content
Flowgun
Inspiring
Nov 26, 2025 3:30 PM UTC
Answered

count selected layers?

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?

CarlosCanto
CarlosCantoCorrect answer
Community Expert
Nov 28, 2025 1:09 AM UTC

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

2 replies

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
Nov 28, 2025 1:09 AM UTC

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

Translate
CarlosCanto
Community Expert
Community Expert
Nov 28, 2025 1:23 AM UTC

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

Translate