Inkscape.org
Beginners' Questions Horizontally scaling group misaligns things
  1. #1
    Bob Bob @bob93

    I am checking the cardbox example/tutorial.

    The part where the side must be narrowed. If I select all the objects and narrow them together it works out fine. However, if I group them first and narrow the group things get out of alignment. In the gif I do it without grouping first and then after grouping. You can see the misalignment. Note the layers and objects dialog to see when I created the group with Ctrl+G

    Is this some bug?

    ย 

  2. #2
    Tyler Durden Tyler Durden @TylerDurdenโš–

    Scaling groups will scale the stroke. Just how it is.

  3. #3
    David248 David248 @David248
    *
    TylerDurden

    Scaling groups will scale the stroke. Just how it is.

    You mean that misalignment comes from changes in stroke width and its consequences on bounding box : that's it ?

    If I understand :

    • When stroke scaling option (see pic) is disabled, individual objects or selection of individual objects keep their stroke width (and thus their bounding box alignement), whatever the proportions of horizontal or vertical scaling (ratio).
    • For groups, if ratio isn't preserved, stroke width is resized as if the stroke scaling option was enabled ?

    It's quite strange.

    Capture D'ร‰cran
  4. #4
    Bob Bob @bob93

    That makes the problem clearer, it's worse than it seemed. What I did in the GIF I tried both with "scale stroke width" turned on and off and it got misaligned horizontally all the same. Now I see that when it's off things get messed up vertically as well. Too bad. Very strange indeed, it has to be a bug

    ย 

  5. #5
    Tyler Durden Tyler Durden @TylerDurdenโš–

    Not a bug, it is the result of transforms being retained on groups. The paths data nested in the group is not transformed, and thus the "scale stroke with path" is not respected.

  6. #6
    Bob Bob @bob93
    *

    How do you do what I was trying to do in the GIF with the group, then?

    I could only do it by transforming each object individually, which is OK in this simple exercise. But what if it was a big complex group?

  7. #7
    Tyler Durden Tyler Durden @TylerDurdenโš–

    It kinda boils down to "it is what it is...".ย ย 

    It is not particularly outrageous to enter a group, select-all and transform, regardless of how many objects there are.ย 

    Sure, complex designs have complex issues. It only stands to reason.

  8. #8
    Bob Bob @bob93

    The Enter group command and then select all, I see. But how about if a group has subgroups? If you enter a group with subgroups, and Select All, the subgroups will be selected instead of the objects. Is there a way to select all the objects instead? Just asking in case you or someone else knows the trick.

  9. #9
    David248 David248 @David248

    It also allows strange strokes behaviors : sometime interesting, perhaps : once you scaledย the circle-in-a-group, you can select the circle in the group and modify it, it keeps it's deformed stroke. Just ungroup the group containing this circle, it recovers an even stroke.ย 

    ย 

  10. #10
    Bob Bob @bob93
    *

    wow, it does. I think I'll never use strokes again unless absolutely necessary.

    BTW, I'm not getting notifications about replies to my own threads. I have to check them out manually.

    Is my account ok?

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Horizontally scaling group misaligns things