Skip navigation
Currently Being Moderated

delete invisible objects

Apr 4, 2013 2:21 AM

Tags: #invisibles

I have a large number of objects, paths, multiple copies, texts etc. under the visible (on the top) object which is larger and completely covers all unusable object bellow.

How can I easily delete or weld INVISIBLE objects from composition? Any scripts?

 
Replies
  • Currently Being Moderated
    Apr 4, 2013 2:24 AM   in reply to dejansuc

    Select all. Pathfinder > Merge.

     

    This alteres visible objects as well as removing any objects which may be covered.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 2:26 AM   in reply to dejansuc

    dejansuc,

     

    Why not just invisibilize the top object (you can tick the eye in the Layers palette/panel) and get easy access?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 11:02 AM   in reply to dejansuc

    The two objects are visible, so what's your point?

     

    Can you provide a sample .ai file including some instructions?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2013 3:38 PM   in reply to dejansuc

    here's a script to delete all hidden objects....but Kurt has a good point.

     

    use with care, undo is your friend.

     

    #target illustrator
     
    // script.name = deleteHiddenItems.jsx;
    // script.description = deletes hidden page items;
    // script.required = at least one open document;
    // script.parent = CarlosCanto // 04/04/13;
    // script.elegant = false;
     
    var idoc = app.activeDocument;
    var hiddenItems = [];
    for (i=0; i<idoc.pageItems.length; i++) {
        var item = idoc.pageItems[i];
        if (item.hidden == true) {
            hiddenItems.push(item);
        }
    }
     
    var hiddencount = hiddenItems.length;
    if (hiddencount>0) {
        var obj = 'items';
        var pronoun = 'them';
        if (hiddencount==1) {
            var obj = 'item';
            var pronoun = 'it';
        }
        var msg = 'Found ' + hiddencount + ' hidden ' + obj + ', \nAre you sure you want to delete ' + pronoun + '?';
        if(confirm (msg, 'yes', 'Confirm Delete')) {
            for (j=0; j<hiddencount; j++) {
                try {
                    hiddenItems[j].locked = false;
                    hiddenItems[j].remove();
                }
                catch (e) {};
            }
        }
    }
    else
        alert('No hidden items found');
    
     
    |
    Mark as:
  • Currently Being Moderated
    Apr 5, 2013 1:23 AM   in reply to dejansuc

    dejansuc,

     

    In that case (that what is invisible is visible), why not just hide the top object, as suggested in post #2, or just lock it (when you can see what you wish to not see)? Either option is just a click in the Layers palette/panel, to the left of the (until then) selected  top object.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points