How to Stroke grouped objects?

Ask a Question related to Adobe Indesign Macintosh, Design and Development.

  1. #1

    Default How to Stroke grouped objects?

    I have just grouped two objects: a text frame and an image frame. When I tried to stroke the grouped fame (already framed for me automatically) the stroke was applied to the individual frames. Is it possible to have the stroke applied to the grouped frame?
    Guy Burns Guest

  2. Similar Questions and Discussions

    1. How to skew grouped objects?
      Ok, here's an image of what I'm referring to in this post: Image <http://burntelectrons.org/img/text-skew.png> I'm new to Illustrator, trying it...
    2. Select objects with the same fill and stroke
      I find myself switching to Illustrator for when I need to select objects of the same stroke and fill (and variations) How do I do this in Freehand?
    3. Assigning Color to Grouped Objects
      FHMX: Any clue why I can?t select a group and assign a new color without ungrouping EVERYTHING first?
    4. MXa and the infamous grouped objects 'bug'
      Anyone know whether the new MXa update addresses the problem of not being able to apply attributes to a grouped object without either having to...
    5. Moving Grouped Objects/Transform Box
      Hi All, I just upgraded to 11.0.1 and noticed no speed improvement with moving Grouped Objects with lots of paths. It stills takes about four to...
  3. #2

    Default Re: How to Stroke grouped objects?

    No. Groups don't actually have frames. What you see is the highlighted bounding box.

    I use this script to address this issue. It creates a paper rectangle as the background to the selected group. When the script finishes running, that rectangle is selected allowing you to apply an object style to it or manually set its look and even resize it, if you wish (for example, to provide some offset between a stroke and the contents):

    //DESCRIPTION: Give selected group Paper background

    myGroup = app.selection[0];
    if (myGroup.constructor.name == "Group") {
    try {
    existingBG = myGroup.rectangles.item("PDScanvas");
    existingBG.label;
    app.select(existingBG);
    } catch (e) {
    myBounds = myGroup.geometricBounds;
    myRect = myGroup.textFrames.add();
    myRect.contentType = ContentType.unassigned;
    myRect.textWrapPreferences.textWrapType = TextWrapTypes.none;
    myRect.geometricBounds = myBounds;
    myRect.fillColor = app.documents[0].swatches.item("Paper");
    myRect.sendToBack();
    myRect.label = "PDScanvas";
    app.select(myRect);
    }
    }

    Notice that the script checks to see if the group in question already has a background, in which case it selects it and exits.

    I call this script PaperBackground.jsx and keep it in a folder named Groups within the Scripts folder in my Presets folder in the InDesign application folder. If you're copying and pasting from the forum, make sure you save as a plain text file with the .jsx extension (for CS, use .js as the extension).

    Dave
    Dave_Saunders@adobeforums.com Guest

  4. #3

    Default Re: How to Stroke grouped objects?

    While a group indeed is an object with its own properties, an own stroke or fill is not among them.
    I can only assume that you talk about that dotted line that appears when you group something? This is an indicator, not a frame. Hence the dotted line.

    Gerald
    Gerald_Singelmann@adobeforums.com Guest

  5. #4

    Default Re: How to Stroke grouped objects?

    Darn, Dave was faster and more comprehensive than me. As usual ;)

    Gerald
    Gerald_Singelmann@adobeforums.com Guest

  6. #5

    Default Re: How to Stroke grouped objects?

    Thanks Dave for the script.

    I'm never too sure what's a bounding box and what's a frame, but here's what my two boxes look like. One is an image with a single blue-line border with eight handles. The other is a Text frame with two blue borders.

    When I group them I get a new single blue-line border with eight handles. Looks exactly the same as what surrounded the image, and since I can stroke that, I thought I'd be able to stroke the grouped box.

    One more thing: I've just noticed a mini box to the right of my group. What's that?

    And something else: when I move the newly created grouped box, the mini box disappears, never to reappear, and the group changes to a double-outlined box.

    Complicated!

    Thanks.
    Guy Burns Guest

  7. #6

    Default Re: How to Stroke grouped objects?

    Guy,
    can it be that you are using CS1?
    The dotted line was introduced with CS2. If you don't mention your version we assume you are up to date.

    I have never seen a double-outlined box on a group unless I held Alt while dragging. Which duplicates the group

    Gerald
    Gerald_Singelmann@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139