Skip to main content
zBob
Known Participant
May 17, 2023
Answered

Objekte auswählen

  • May 17, 2023
  • 3 replies
  • 2412 views

Hallo zusammen,


seit ich viel mit Patterns arbeite, ist mir aufgefallen, dass man mithilfe eines Objekts nur ein anderes Objekt auswählen kann, nämlich das nächste, darüber oder darunter (Auswahl -> nächstes Objekt darüber/darunter).
Gibt es dann aber eine andere Möglichkeit, mehrere Objekte auszuwählen, die unter einem anderen Objekt liegen – also mit dem Umfang eines Objekts alle darunter liegenden Objekte auszuwählen?

 

Vielen Dank für eure Hilfe.
Bob

This topic has been closed for replies.
Correct answer Monika Gause

I think I did write a script for that @Monika Gause but I can't find it.

 

@zBob what do you do after selecting the dots below the S shape?


Maybe use this as a start?

 

#target Illustrator
 
//  script.name = selectObjectsBelowTopPath_CS5_Only.jsx;
//  script.description = selects all objects below TopMost path;
//  script.required = CS5 only, one open document, one artboard, some art & one path on top;
//  script.parent = carlos canto // 5/6/11;
//  script.elegant = false;
 
// update: restricted to selected objects only 06/30/13
// 1. draw your selecting shape (and add a fill color to it) and place it on top of the grid of objects
// 2. make a selection marquee that includes your selecting shape
// 3. run the script
// if you select lots of objects, Illustrator may protest and it may look like it is frozen...don't worry, it just can't redraw, but it's ok, let it finish.
 
var idoc = app.activeDocument;
var pgItem = idoc.pathItem;
var abRect = idoc.artboards[0].artboardRect;
var tempRect = abRect;
var tempAB = idoc.artboards.add(abRect);
var pgItems = [];
 
 
var sel = idoc.selection;
for (i=0;i<sel.length;i++)
    {
        //pgItem = idoc.pageItems[i];
        pgItem = sel[i];
        //idoc.artboards[0].artboardRect = pgItem.visibleBounds;
        tempAB.artboardRect = pgItem.visibleBounds;
 
        idoc.selectObjectsOnActiveArtboard();
 
        if (idoc.pageItems[0].selected)
            {
                //alert ("yes!!");
                //pgItem.fillColor = idoc.swatches["Black"].color;
                pgItems.push(pgItem);
            }
        idoc.pageItems[0].selected = false;
        pgItem.selected = false;
     }
 
    var activeAbIndex = idoc.artboards.getActiveArtboardIndex();
    idoc.artboards.remove (activeAbIndex);    
 
    for (j=0 ; j<pgItems.length; j++)
        {
            pgItems[j].selected = true;
         }   

3 replies

pixxxelschubser
Community Expert
Community Expert
May 19, 2023

Mit ein paar Zusatzschritten funktioniert das auch mit Symbolen.

 

Leider hast du deinen Workflow nicht genauer beschrieben. Möchtest du die Symbole ändern? Oder möchtest du lediglich deine Zeichnung auf der Basis bestehender Symbole erstellen?

 

In jedem Fall arbeitest du mit einer Symbolinstanz. Dann muss die Verknüpfung zum Symbol aufgehoben werden. Und dann geht es weiter mit Monikas Tutorial.

 

Auf diesem Weg erhältst du auch das gewünschte Ergebnis. Und falls anschließend das Symbol aktualisiert werden müsste: einfach dein Ergebnis auswählen und mit zusätzlich gedrückter Alt-Taste direkt AUF das bestehende Symbol ziehen. Das ersetzt das bestehende Symbol.

pixxxelschubser
Community Expert
Community Expert
May 18, 2023

Vielleicht reicht für das gezeigte Beispielbild bereits das manuelle Verfahren.

Hier in diesem Tutorial von @Monika Gause sehr gut beschrieben:

https://www.vektorgarten.de/pf-schneiden.html

zBob
zBobAuthor
Known Participant
May 19, 2023

Hallo @pixxxelschubser,
danke für deinen Tipp - in der Tat soll die Methode in manchen Fällen gut funktionieren. In meinem Fall leider nicht, da ich mit Symbolen zu tun habe. Der Pathfinder kann nicht auf Symbole angewendet werden.

Jacob Bugge
Community Expert
Community Expert
May 17, 2023

Bob,

 

As I (mis)understand it, how about ClicDragging over the all the objects, then ShiftClick the top object in the expanded Layer in the Layers panel to deselect it while keeping all the others selected?

 

zBob
zBobAuthor
Known Participant
May 17, 2023

Hi Jacob,

Firstly, thanks for the quick reply! However, in this matter it seems to be more complicated than a simple drag & select procedure. Of course, it would be easy if you had a rectangular object. Or any unspecified shape. But if you try to select a specific shape from a bunch of objects, say 100 dots in a grid, with an exact shape, say the shape of the letter "S", it will be impossible with just a cursor drag. I hope my explanation has given you an idea of my problem.

Jacob Bugge
Community Expert
Community Expert
May 17, 2023

Bob,

 

I can see that you meant something different to what I believed, but I am unsure exactly what.

 

Looking at both the original and the (English) translation, I first thought that "darunter liegenden Objekte" meant objects (partly) covered.

 

Now I wonder whether it actually means smaller, owing to the word "Umfang".

 

Or maybe lower in the stacking order.

 

I believe most possible helpers would benefit from a screenshot or an elaboration of the description.

 

Apart from that, I have a feeling that the solution may be a script.