Skip to main content
Participating Frequently
March 4, 2013
Answered

Script to expand and/or collapse Layers?

  • March 4, 2013
  • 1 reply
  • 1820 views

Hi all,

I've seen a very little bit of this topic in the forums but with no real resolution it seems? Like many others, whenever I open a file, Layers are randomly expanded in the Layers palette, very frustrating and time consuming to deal with.

Is there a way to run a script that collapses and/or expands all layers?

Thanks so much!

-S

This topic has been closed for replies.
Correct answer CarlosCanto

sorry but no, not possible with scripting,

just note that the expanding is not random, you'll layers will expand if you have sublayers.

1 reply

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
March 4, 2013

sorry but no, not possible with scripting,

just note that the expanding is not random, you'll layers will expand if you have sublayers.

Participating Frequently
March 5, 2013

thanks for adding the "just note..." comment. a simple AI behavior i was not aware of! been working in these files for years and never had an issue until someone else starting helping out. it never occurred to me that he was making sublayers and thus it never occurred to me that this could even be the issue.

CarlosCanto
Community Expert
Community Expert
March 5, 2013

yeah, that's what happen when someone else "helps" you..if auto-expanding is driving you crazy try avoiding sublayers and if not possible...try maybe using groups instead of sublayers (to keep things organized), but it will be harder to tell them appart in the Layers panel, those are the only options I can think of