Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Hidden items

Participant ,
Apr 04, 2024 Apr 04, 2024

I have several hidden items in many different layers that I would like to delete all at once. I don't know how to do this. If I hide something and then show all, all the hidden things a designer hid are exposed and there is a ton of stuff.

 

HELP PLEASE

TOPICS
Performance
189
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2024 Apr 04, 2024
LATEST

It could be scripted, something like this, make sure you run the script on a copy in case you get an unexpected result:

 

var api = app.activeDocument.allPageItems;
for (var i = 0; i < api.length; i++){
    try {
        if (!api[i].visible) {
            api[i].remove()
        } 
    }catch(e) {}
};   
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines