Skip to main content
Known Participant
Apr 4, 2024 7:15 PM UTC
Question

Hidden items

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

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

rob day
Community Expert
Community Expert
Apr 4, 2024 7:42 PM UTC

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