Stroke not working on Group object

Post questions on how to use or achieve an effect in Inkscape.
tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Stroke not working on Group object

Postby tinkergeek » Mon Nov 06, 2017 12:54 am

Hi

I'm new to inkscape, just learning by following youtube tutorials and looking for help on this. I've created a simple object (two lines) but when I select the group and try to change the width value in the stroke tab the width of the lines do not change. However if I created just a line (no group) I can easily change the stroke width.

I know this is a newbie question but I don't know what I'm doing wrong. Could anybody tell me how to correctly apply the stroke width to groups of lines so I dont' keep pounding my head against the wall on this?

thanks much.
cheers.

Moini
Posts: 2227
Joined: Mon Oct 05, 2015 10:44 am

Re: Stroke not working on Group object

Postby Moini » Mon Nov 06, 2017 2:55 am

mmh - currently, I cannot guess the reason. Can you upload an SVG image, and tell us which item exhibits the behaviour?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Re: Stroke not working on Group object

Postby tinkergeek » Mon Nov 06, 2017 4:40 am

here it is. the upper line and left short 60 degree line are the group. the rest are clones of the group. so the plan is to change the stroke of the group with the rest being similarly modified. but i can't change the stroke width or cap. however the solidary line that is not part of the others does change with the change in stroke width.

any suggestion greatly appreciated
Attachments
practice-snowflake-vs-line.svg
(18.95 KiB) Downloaded 8 times

tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Re: Stroke not working on Group object

Postby tinkergeek » Mon Nov 06, 2017 5:55 am

added svg. the group is the upper straight line with a 60 angle short line to the left. all other components of the image are clones. the idea is to change the group stroke width and cap and the clones will get the same characteristics. but i cannot get the group lines to use the stroke width. as a comparison i pull a single straight line away from the group and clones. it accepts any stroke width i set.

any help much appreciated.

thanks
Attachments
practice-snowflake-vs-line.svg
(18.95 KiB) Downloaded 10 times

tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Re: Stroke not working on Group object

Postby tinkergeek » Mon Nov 06, 2017 6:11 am

Continued to test. I really think this is a bug. if i start with a straight line and add a second and use the stroke width feature it works on both lines. But if i then group those lines the stroke width goes to 0.000 or 0.100 and will not increase nor will the lines change.

I am running on a mac OS El Capitan 10.11.6 with inkscape 0.92 XQuartz 2.7.11 (xorg-server 1.18.4)

Moini
Posts: 2227
Joined: Mon Oct 05, 2015 10:44 am

Re: Stroke not working on Group object

Postby Moini » Mon Nov 06, 2017 8:15 am

Some tips:
- When you clone, always clone from the original, not from a clone. In your drawing, you ended up with Clone of Clone of Clone of Clone of Clone... That's going to make things weird and slow.

- in Inkscape, you won't see when many identical objects lie right on one another. Try to not do that. You can remove lots of objects in your drawing without it looking any different. In your drawing, there are 4 copies of the snowflake, while - I guess - you only wanted a single one. To get a clean start, remove all but the first snowflake base shape item (the two lines group), then do the cloning again. Clone only from that first object.

The issue here is that you probably selected one of the overlaying clones, instead of the original below - and you cannot change a clone's stroke width (unless it's not set on the original, which in practice doesn't happen in Inkscape, unless you use the XML editor to remove the attribute). Look into the status line to see which kind of object you have selected (at the bottom of the window). Alt + click repeatedly to select objects below another one.

To select a clone's original, use Shift+D (or Edit > clone > select original). In the case of your drawing, this is going to take a couple of steps, as you have those clones of clones of clones etc.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 1823
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Stroke not working on Group object

Postby tylerdurden » Mon Nov 06, 2017 11:07 am

Yep.
Image

If you want to make more clones of the same original, simply duplicate the first clone as many times as you want... the duplicates will all be linked directly to the original.

True that the fill/stroke panel will not indicate the stroke widths when applying to a group (it's complicated), but application of stroke width will propagate to the contents of the group.

While the line cap style cannot be applied via the group, entering the group via doubleclick allows selection, or using the objects panel to select contents is handy too.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Re: Stroke not working on Group object

Postby tinkergeek » Tue Nov 07, 2017 3:13 am

Thanks for your replies. Much appreciated.

However it seems there is still an issue with using group and stroke width. I made a 30 sec mp4 but cant upload to show.

tylerdurden
Posts: 1823
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Stroke not working on Group object

Postby tylerdurden » Tue Nov 07, 2017 3:15 am

You could upload and post a link to dropbox or google drive, to share the video.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 2227
Joined: Mon Oct 05, 2015 10:44 am

Re: Stroke not working on Group object

Postby Moini » Tue Nov 07, 2017 4:52 am

Or even youtube would work :)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Re: Stroke not working on Group object

Postby tinkergeek » Tue Nov 07, 2017 8:07 am


Lazur
Posts: 4421
Joined: Tue Jun 14, 2016 10:38 am

Re: Stroke not working on Group object

Postby Lazur » Tue Nov 07, 2017 8:16 am

Hi.

By grouping the paths the group doesn't inherit the grouped object's style attributes.

First you need to add a stroke to the group to make the behave more as expected.
(Now it is changing the width but displaying 0 in the spinbox right after because there is no stroke set.)


Maybe combining the paths would be more fitting with that drawing (Ctrl+K) than grouping (Ctrl+G).

tinkergeek
Posts: 13
Joined: Mon Nov 06, 2017 12:46 am

Re: Stroke not working on Group object

Postby tinkergeek » Tue Nov 07, 2017 10:31 am

ok, so seems combine or path> union of the 2 lines is better then group.

thanks.

tylerdurden
Posts: 1823
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Stroke not working on Group object

Postby tylerdurden » Tue Nov 07, 2017 10:37 am

Looks like the spinbox is faulty on the group. Entering a numeric value seems to work here.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 9612
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Stroke not working on Group object

Postby brynn » Tue Nov 07, 2017 12:03 pm

I don't think it's a bug, that you can't change the stroke width of a group. The ability to change the stroke width on a group was lost....I want to say starting with 0.48. Maybe 0.47? It annoys me greatly. There was some explanation for the change at the time, although I don't remember what it was. I just know it continues to annoy me.

Even though you can change the value by typing, after you deselect and reselect, it's showing zero again. I think there's some reason why developers don't want stroke width to be changeable on a group. We'd just have to ask them. Sorry I can't remember.

tylerdurden
Posts: 1823
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Stroke not working on Group object

Postby tylerdurden » Tue Nov 07, 2017 10:54 pm

Ummm....

Image

...might be good to try these things.

Seems like the spinbox doesn't work when the stroke on the group is unset.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 9612
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Stroke not working on Group object

Postby brynn » Fri Nov 10, 2017 2:44 pm

To me, it should not require an extra step to specifically apply a stroke to a group, when the objects in the group already have a stroke. By the time I do all that, I could ungroup them, change the width and re-group. I don't see any way that this behavior is an improvement. But I have the recollection it was intended.

Straining my old brain, this might have been the response to the old complaints where if you group objects with different fills and/or strokes, the group's fill and stroke color was sort of a combination. (I.e. one blue and one red object, when grouped, would be shown in the Style Indicator area (bottom-left) as purple.) Personally, I didn't have a problem with that. But again, my memory is thin.

If a change was wanted or needed badly enough, one could always submit bug report/feature request. https://launchpad.net/inkscape


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests