Photoshop: Delete all unused layers in ALL layer comps feature.

  • 9
  • Idea
  • Updated 5 months ago
  • (Edited)
Delete all unused layers in ALL layer comps. Right now hitting delete all unused layers messes up a file with more than 1 layer comp. Personally I use like 20 layer comps each PSD - this feature would help immensely in trimming file size down and cleaning up if handing the file off.
Photo of Aaron Lee

Aaron Lee

  • 2 Posts
  • 0 Reply Likes
  • happy

Posted 7 years ago

  • 9
Photo of David Dobish

David Dobish, Senior QE Photoshop

  • 197 Posts
  • 50 Reply Likes
Can you describe "messing up" Corrupts, messes up layer order, etc..

Thanks.
Photo of Aaron Lee

Aaron Lee

  • 2 Posts
  • 0 Reply Likes
Think of it as a 3-layered wedding cake. If I highlight layer comp 1 (the top of the cake) and hit the current "delete unused layers" I will actually delete everything not pertaining to layer 1. Layer comp 2 and 3 of the cake are now deleted. Not good. I would like to select 1,2 and 3 layers of the cake and now hit delete unused layers to clean it up to ship without any danger of deleting anything I need.
Photo of Linda Schütte

Linda Schütte

  • 2 Posts
  • 0 Reply Likes
This reply was created from a merged topic originally titled
Expanded possibilities of layer composition handling.


Hi, I am an Interface Designer and therefore working every day with Adobe Photoshop.
By my experience with this program, some suggestions for future developments grew in my head, which I now want to communicate.
1. It would be very nice and helpful to handle the normal layers with the help of 'layer compositions'.
When I created many layer compositions, I always lose control of the structure of the normal layers and then I yearn for a function like: 'mark all normal layers, that belong to this layer composition.'
2. It would also be nice to be able to delete layers, that are not part of a layer composition.
Kind regards,
Linda
Photo of Muhammad Umer

Muhammad Umer

  • 7 Posts
  • 0 Reply Likes
yes i'd like a option to get rid of all empty layers.
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14123 Posts
  • 1761 Reply Likes
File>Scripts>Delete Empty Layers... will do that.
Photo of Paul Riggott

Paul Riggott

  • 359 Posts
  • 143 Reply Likes
There is a script here to remove all layers not used in any LayerComps
http://www.ps-bridge-scripts.talktalk...
Photo of Jeffrey Tranberry

Jeffrey Tranberry, Sr. Product Manager, Digital Imaging

  • 14090 Posts
  • 1748 Reply Likes
Cool! Thanks Paul.
Photo of Aravindan Doraisamy

Aravindan Doraisamy

  • 1 Post
  • 0 Reply Likes
thanks a lot.. it worked perfectly :)
Photo of lee

lee

  • 25 Posts
  • 7 Reply Likes
Scripts scare me, so I found a really freaking easy workaround:

1. Filter layers list to Attribute = Not Visible
2. Select all the matching layers
3. Cycle through all layer comps
4. Layers still selected aren’t used in any layer comp

Delete the layers that are still selected. Bingo bango. With keyboard shortcuts for navigating layer comps, this takes like 7 seconds or something.
Photo of Renaud Ternynck

Renaud Ternynck

  • 8 Posts
  • 1 Reply Like
Good point but I often have documents with 20 or more layer comps. Makes the process pretty tedious. I think that a simple "delete unused layers" would be easy enough to hook up to the layer dropdown menu. :)
Cheers.
Photo of lee

lee

  • 25 Posts
  • 7 Reply Likes
Same (20 or more layer comps). That's why I'm such a keyboard ninja with them. So still this doesn't take long. Still still, a native solution like you suggest would be nice.
Photo of Renaud Ternynck

Renaud Ternynck

  • 8 Posts
  • 1 Reply Like
Just tried your trick and it works great.
Still want the simple menu command but until then this will do :)
Thanks for the tip!
Photo of Theodore Rhodes

Theodore Rhodes

  • 1 Post
  • 0 Reply Likes
Thank you so very much!
Photo of Renaud Ternynck

Renaud Ternynck

  • 8 Posts
  • 1 Reply Like
This reply was created from a merged topic originally titled PHOTOSHOP - Deleting empty and unused layers.

Would love to have the ability, in the layer dropdown menu, to delete empty layers (no pixels) and also delete unused layers. The unused layers would be based on whether the layers are used in any layer comps. (love layer comps BTW).
Photo of CM

CM

  • 1 Post
  • 0 Reply Likes
actually if you click the hamburger menu on the Filter part, there is a "Delete Hidden Layers" option.  I created an Action using it! Finding out about the Attribute Filter was fantastic though! Thanks!