Inkscape.org
Beginners' Questions Recursively change the width of all the strokes in a Group
  1. #1
    Eric Woodcock Eric Woodcock @EricWoodcock

    Hello,

    I attach a file with a complex group i.e., a group that contains subgroups that sometimes contain subgroups in their turn etc.. In the respective innermost levels are paths and ellipses of varying stroke thicknesses (3 px, 4 px, 5 px). 

    I need the group structure to remain just as it is now – I do not want to flatten it by ungrouping in any way. But _all_ its paths should recursively have the stroke thickness doubled. 

    So my naïve approach to achieve that is:

    • I select my group,
    • go to the "Fill and Stroke" pane,
    • switch to the "Stroke style" tab,
    • change the unit field of the "Width:"  line to "%" (now the value field of the "Width:" line changes to 100)
    • overwrite the "100" with a "200",
    • hit "return"

    … and suddenly the "Width" field switches back on its own to "px" units without being prompted to do so and Inkscape does NOT properly and recursively set each stroke thickness in the group to 200 % of their respective value. 

    So that's what _doesn't_ work.

    What does? 

    Pixel
  2. #2
    Polygon Polygon @Polygon🌶

    Why not go Path->Combine and adjust from there instead the use of grouping?

  3. #3
    Eric Woodcock Eric Woodcock @EricWoodcock
    *

    Because I need the groups later in post-processing. They go into a Synfig (an animation program) where they become layers that are used for animating. I need the Synfig layers separate and encapsuled in just this way. And so I need the SVG/Inkscape groups encapsuled in just this way. 

  4. #4
    Eric Woodcock Eric Woodcock @EricWoodcock

    Also, when I combine the paths, they'll _all_ have the same stroke width AFAIK. But the stroke widths are different – some are 3 px and need to become 6 px, others are 5 px and need to become 10 px.

  5. #5
    Polygon Polygon @Polygon🌶

    Select all "hair elements" in "Layers and Objects" panel - go Stoke style and add where it says 100%  "100*2" hit return.

  6. #6
    Eric Woodcock Eric Woodcock @EricWoodcock

    Thanks.

    What do I have to do exactly to select the "hair elements"? I'm on the Layers and Objects pane, I've highlighted my group, I'm right-clicking, and what do I do next?

    Bild1
  7. #7
    Polygon Polygon @Polygon🌶

    Let´s see if this helps:

  8. #8
    Eric Woodcock Eric Woodcock @EricWoodcock

    Thanks a lot!

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Recursively change the width of all the strokes in a Group