Looking for a cleanup layers script

Community Beginner ,
Jan 15, 2021

Copy link to clipboard

Copied

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

Screen Shot 2021-01-15 at 11.26.20 AM.png

After Cleanup

Screen Shot 2021-01-15 at 11.27.29 AM.png

 

Any help or suggestions are appreciated!

 

 

TOPICS
Scripting

Views

98

Likes

Translate

Translate

Report

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

1 Correct Answer

Adobe Community Professional , Jan 15, 2021
Kurt Gold Adobe Community Professional , Jan 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).  

Likes

Translate

Translate
Jump to answer Jump to answer
Adobe Community Professional ,
Jan 15, 2021

Copy link to clipboard

Copied

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...

 

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
millerku AUTHOR
Community Beginner ,
Jan 15, 2021

Copy link to clipboard

Copied

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/424...

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Jan 15, 2021

Copy link to clipboard

Copied

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).

 

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
millerku AUTHOR LATEST
Community Beginner ,
Jan 15, 2021

Copy link to clipboard

Copied

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

 

Thanks for your help!

Likes

Translate

Translate

Report

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