Inkscape.org
Beginners' Questions Clip group doesn't work at all
  1. #1
    MajorLabel MajorLabel @MajorLabel

    I have used clip grouping and prefer it over normal clipping since it allows  more control. However, I have a group of paths that I want to clip using a rectangle, and it just does nothing. I've made sure the clip ONLY contains the group of paths and the rectangle, I've changed the order of the two inside the rectangle, I've made sure the rectangle has 100% opacity and a fill. Still: nothing.

     

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Maybe the group is locked? I'd check the Objects and Layers panel.

    If all selected objects and layers are unlocked, please post a screenshot of your settings.

  3. #3
    MajorLabel MajorLabel @MajorLabel

    Nothing was locked. Can I share images as a new user or am I a noob who can't find the button?

  4. #4
    COD COD @COD

    Paperclip icon bottom left

  5. #5
    MajorLabel MajorLabel @MajorLabel

    Attached, like a noob. So the blue slanted lines are supposed to be clipped by the blue rectangle. I also tried converting the rectangle to a path, same result.

    2025 06 03 10 06
  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    The blue rectangle rect98 needs to be higher in the z-order (in front of) the group of slanted lines g1131.

    http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Z-Order.html

  7. #7
    MajorLabel MajorLabel @MajorLabel

    No, I've tried multiple orders, doesn't matter. In the XML editor, moreover, the order of the elements is reversed from what you see in the layers panel. But anyway, I have clip groups where the clippath is at the bottom and they work. And I've tried reversing the order already; that's not it.

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    Working here as expected. Z-order is significant.

     

    Example file attached

     

    Cliptest
  9. #9
    MajorLabel MajorLabel @MajorLabel

    Well like I said: clip works, clip group doesn't (check attachment). Clip grouping provides much more flexibility, so I greatly prefer it.

  10. #10
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Let's take a look at your screenshot in #5. Shapes inside the "Clip" group are used to clip the parent group "g5" so you need to move "g1131" above the "Clip" group. The "Clip" group should only contain "rect98".

    Does that work?

  11. #11
    Tyler Durden Tyler Durden @TylerDurden
    • 'Create Clip Group' from context menu groups the selected objects and clips that group with a clone of itself. This allows for quick creation of, for example, inset shadows.

    https://wiki.inkscape.org/wiki/index.php/Release_notes/0.92

    So, If you want the blue rectangle to define the boundary of the thin lines, clip-group is probably not the tool to use.

    Another option is to make the thin lines a pattern, and use that as a fill in the rectangle.