Skip to main content
Known Participant
January 15, 2021
Answered

Looking for a cleanup layers script

  • January 15, 2021
  • 2 replies
  • 591 views

Is it possible to create a script to clean up the layers in my file before I preform a save out?

By clean up I mean just make them look clean by collapsing all layers and sublayers.

 

Before Cleanup

After Cleanup

 

Any help or suggestions are appreciated!

 

 

This topic has been closed for replies.
Correct answer Kurt Gold

I don't know how complex your layer structures are, but you can collapse (or expand) all sub containers by Alt key clicking on the little arrowheads on the left-hand side of the top level container items (main layers).

 

2 replies

Kurt Gold
Community Expert
Kurt GoldCommunity ExpertCorrect answer
Community Expert
January 15, 2021

I don't know how complex your layer structures are, but you can collapse (or expand) all sub containers by Alt key clicking on the little arrowheads on the left-hand side of the top level container items (main layers).

 

millerkuAuthor
Known Participant
January 15, 2021

This will definitely work for now.  Please excuse me while I show all my coworkers this new trick lol!

 

Thanks for your help!

Charu Rajput
Community Expert
Community Expert
January 15, 2021

Hi,

As far as I know I don't think this is possible via script. Please see below link

https://community.adobe.com/t5/illustrator/script-to-expand-and-or-collapse-layers/td-p/4842110?page=1 

 

This is quite old link, in case if is there any update on this, you will may get information here.

 

You can post a feature request where we have some option collapse/or expand in Layers flyout menu on the following link.

https://illustrator.uservoice.com/

 

Best regards
millerkuAuthor
Known Participant
January 15, 2021

Thanks for the help!  I did see that post from 2013 when I was searching for an answer, but I was really banking that there was a fix for it since then. Bummer 😞

 

I posted a feature request here if anyone would like to vote it up.

https://illustrator.uservoice.com/forums/333657-illustrator-desktop-feature-requests/suggestions/42451084-create-a-collapse-all-layers-button