Pattern along path to get vertical line on horizontal path

Post questions on how to use or achieve an effect in Inkscape.
seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Pattern along path to get vertical line on horizontal path

Postby seans_potato_biz » Sat Feb 11, 2017 5:11 am

I tried to use the Pattern Along Path feature to make a repeating vertical line going horizontally. The screenshot shows the situation.

I am using the vertical line as the pattern and the horizontal line as the path and what I get is not what I want. I made what I want using copy and paste and the arrangement function. How do I achieve this with the Pattern Along Path function? Thanks!

Image
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

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

Re: Pattern along path to get vertical line on horizontal path

Postby Lazur » Sat Feb 11, 2017 5:25 am

Hi.

Make sure you tick in the "pattern is vertical" box perhaps?

Not exactly sure what is your basic goal with this.
You can create a dashed line with the same look.

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

Re: Pattern along path to get vertical line on horizontal path

Postby brynn » Sat Feb 11, 2017 7:36 am

When I do what you describe, I end up with a solid line (which height is the same as my vertical line pattern), because the vertical line patterns are right next to each other, 1 px wide, just like stroke width. But once I put a positive number in the Spacing field, then it's looking like your screenshot.

Also, be sure to have Repeated. And I don't think you would need "Pattern is vertical" (even though it is)

If that doesn't solve the problem, please tell us exactly the steps you are taking.

seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Re: Pattern along path to get vertical line on horizontal path

Postby seans_potato_biz » Mon Feb 13, 2017 9:25 pm

Image

This is the final result I want to achieve.
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

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

Re: Pattern along path to get vertical line on horizontal path

Postby Lazur » Mon Feb 13, 2017 10:07 pm

If you are using the pen tool with the shape set from clipboard, you need to "fine tune" the effects in the path effects panel (Shift+Ctrl+7).

Set "repeated" or "repeated, stretched" instead of the default "stretched" style and set a value for spacing other than 0.

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

Re: Pattern along path to get vertical line on horizontal path

Postby Moini » Tue Feb 14, 2017 12:19 am

Also be sure to play with the width parameter. It looks to me as if the width were too small.
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)

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Pattern along path to get vertical line on horizontal path

Postby Polygon » Tue Feb 14, 2017 7:55 pm

Seems a bug to me:

StraightLinePatternIssue.png
StraightLinePatternIssue.png (38.38 KiB) Viewed 2893 times

Cheers
P.

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

Re: Pattern along path to get vertical line on horizontal path

Postby Lazur » Tue Feb 14, 2017 9:06 pm

Wouldn't call that a bug as per se.
A straight vertical path segment for a pattern -something with zero horizontal dimension-, repeated with 0 spacing would mean an infinite number of patterns should be generated.

Polygon
Posts: 393
Joined: Thu Dec 19, 2013 3:27 am

Re: Pattern along path to get vertical line on horizontal path

Postby Polygon » Tue Feb 14, 2017 9:15 pm

Yeah - bug; bad bad word. Should it work or not? IF the set-up is wrong the extension needs a fall-back or some comment telling what´s the issue here - right now the base line simply disappears after execution - not very intuitive.
I wouldn´t use this approach nonetheless for this particular goal - we have interpolation or tiled cloning - so I don´t really care.
I added one more case at the bottom to your liking.

StraightLinePatternIssue2.png
StraightLinePatternIssue2.png (50.86 KiB) Viewed 2871 times

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

Re: Pattern along path to get vertical line on horizontal path

Postby Moini » Wed Feb 15, 2017 10:35 am

Mmh. Interesting. Yes, looks like a bug to me. A warning or a preset would be helpful. And when you bend the path, after you have applied the single stroke as a pattern, the path vanishes...

As a workaround, you can convert the stroke to a path, and then apply it as a pattern. This will work, the shape has a width specified.

Anyone wants to make a report?
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)

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Pattern along path to get vertical line on horizontal path

Postby theozh » Wed Feb 15, 2017 9:09 pm

Lazur wrote:Wouldn't call that a bug as per se.
A straight vertical path segment for a pattern -something with zero horizontal dimension-, repeated with 0 spacing would mean an infinite number of patterns should be generated.

Related questions might be: Has a stroke e.g. with a line width of 1.0 for some operations actually a width of 0.0?
On the other hand, can a stroke be stretched? Apparently, in some cases yes, in some cases no.

If you draw a vertical stroke, it can't be stretched horizontally, although a horizontal width is given. OK, that's how it is. However, it can be stretched vertically and it thereby also changes its width. Strange! If you rotate the stroke it also can be stretched in either direction. It looks like: if a stroke has a component parallel to the stretching direction it can be stretched (or patterned along a path).

I originally thought that a stroke stays a stroke with its original thickness independent of scaling operations.
Win7/64, Inkscape 0.92.2

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

Re: Pattern along path to get vertical line on horizontal path

Postby Moini » Thu Feb 16, 2017 12:25 am

> Has a stroke e.g. with a line width of 1.0 for some operations actually a width of 0.0
Yes. If it is strictly vertical. This also holds for blurring - try to blur a vertical (or horizontal) straight stroked line.

The stroke scaling on resize depends on the setting in the selection tool (the rightmost four buttons determine behaviour on resized).
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)

seans_potato_biz
Posts: 138
Joined: Mon Apr 07, 2008 6:01 am

Re: Pattern along path to get vertical line on horizontal path

Postby seans_potato_biz » Thu Feb 16, 2017 12:52 am

I reported the bug and made a link to this forum: https://bugs.launchpad.net/inkscape/+bug/1664971
Win 7/10, Inkscape 0.92.2

We don't inherit the Earth from our parents; we borrow it from our children.

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Pattern along path to get vertical line on horizontal path

Postby theozh » Thu Feb 16, 2017 1:11 am

Moini wrote:The stroke scaling on resize depends on the setting in the selection tool (the rightmost four buttons determine behaviour on resized).

Thanks, @Moini, always learning new things to which I haven't paid attention so far...
When you deselect the scaling of strokes with the according button it nevertheless increaseses the displayed stroke, but when you release the mouse it's getting back to the original stroke width. Not perfect, but also no dramatic "bug", anyway...
Win7/64, Inkscape 0.92.2

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

Re: Pattern along path to get vertical line on horizontal path

Postby Moini » Thu Feb 16, 2017 3:16 am

@theozh: I think someone only recently created a report for this :)

@Sean: Thanks :)
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)


Return to “Help with using Inkscape”