Bending without distorting

Post questions on how to use or achieve an effect in Inkscape.
Raspi
Posts: 179
Joined: Fri Oct 21, 2016 12:51 am

Bending without distorting

Postby Raspi » Fri Jan 27, 2017 1:45 am

I want to bend a dot pattern along a curved path.

In Ai i can make a Blend and then replace the spine with align to path option ticked.

In IS i can use the Pap LPE but it will distort the circles.
I can use the Bend LPE, but again it will distort the circles.

I can use the Pap Extension but then its hard to estimate the path length, and i cant adjust dynamically.
Attachments
Dotpattern.png
Dotpattern.png (17.65 KiB) Viewed 730 times

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

Re: Bending without distorting

Postby Lazur » Fri Jan 27, 2017 2:01 am

Only way I could think of doing this was using custom markers.
(Too bad that again they may not be displayed well outside inkscape with a different than a dot shape -chrome doesn't render the orientation of the markers right.)

Make a custom marker,
add it to vertical line segment shaped paths with no fill, set stroke to 0 alpha value
scale/set different stroke widths on the duplicants, align them to your like and group them together

and finally use the bend lpe on that group.

Some examples:
1
2
3

Raspi
Posts: 179
Joined: Fri Oct 21, 2016 12:51 am

Re: Bending without distorting

Postby Raspi » Fri Jan 27, 2017 2:28 am

Lazur wrote:Make a custom marker,
add it to vertical line segment shaped paths with no fill, set stroke to 0 alpha value
scale/set different stroke widths on the duplicants, align them to your like and group them together

and finally use the bend lpe on that group.

Seems very complicated but im not even getting there....
When i transform a circle into a marker, the circle disappears but doesnt turn up in the markers drop down menu...
Where is it ??

How do i make the interpolation effect from there ?
Lets say my original circle is 40px and im using one of the circular markers that comes build in IS. The Stroke Width does not correspond to the circle size im aiming for...

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

Re: Bending without distorting

Postby Lazur » Fri Jan 27, 2017 2:52 am

Here is a quick screen capture of the process.

Custom markers are assigned in their true size to an 1 px wide stroke.
There was a bug custom markers not appearing in the dropdown list by first click, and maybe they are displayed differently as expected too.

In the video I grouped the base object and cloned it, then converted the clone to a marker
-this way you can add in elements later on.

Raspi
Posts: 179
Joined: Fri Oct 21, 2016 12:51 am

Re: Bending without distorting

Postby Raspi » Fri Jan 27, 2017 3:16 am

Lazur wrote:Here is a quick screen capture of the process.

Custom markers are assigned in their true size to an 1 px wide stroke.
There was a bug custom markers not appearing in the dropdown list by first click, and maybe they are displayed differently as expected too.

In the video I grouped the base object and cloned it, then converted the clone to a marker
-this way you can add in elements later on.

Thanks ! Very impressive !


One more question:
Why did you add a third node to the path ?

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

Re: Bending without distorting

Postby Moini » Fri Jan 27, 2017 4:41 am

Anybody tried the Scatter extension? It works without distortion.
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)

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

Re: Bending without distorting

Postby Moini » Fri Jan 27, 2017 4:41 am

(Can provide instructions, if desired - but it's not modifiable after the fact)
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)

Raspi
Posts: 179
Joined: Fri Oct 21, 2016 12:51 am

Re: Bending without distorting

Postby Raspi » Fri Jan 27, 2017 5:14 am

Moini wrote:(Can provide instructions, if desired - but it's not modifiable after the fact)

Yes please (didnt work for me).

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

Re: Bending without distorting

Postby Moini » Fri Jan 27, 2017 6:42 am

Okay, here we go:
(Interpolation is optional (and works with more than two selected objects) ;-) - but stacking order must correspond to arrangement order, and vertical/horizontal centering are necessary for scatter extension)

scatter-demo.svg
(187.88 KiB) Downloaded 15 times
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)

Raspi
Posts: 179
Joined: Fri Oct 21, 2016 12:51 am

Re: Bending without distorting

Postby Raspi » Fri Jan 27, 2017 7:26 am

Moini wrote:(Interpolation is optional (and works with more than two selected objects) ;-) - but stacking order must correspond to arrangement order, and vertical/horizontal centering are necessary for scatter extension

I had no idea you could interpolate more than one object at the same time.

Your technique is probably easier than Lazur's.
Funny thing, i experimented with the Scatter and groups but must have done soemthing wrong...

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

Re: Bending without distorting

Postby Moini » Fri Jan 27, 2017 7:42 am

I always forget about the centering - if it's not done, the objects will be all over the place, as the group's center seems to be used as a reference point.
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)

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

Re: Bending without distorting

Postby Lazur » Fri Jan 27, 2017 2:15 pm

Raspi wrote:Thanks ! Very impressive !
One more question:
Why did you add a third node to the path ?


Thank's!

Because the markers need nodes to be assigned to. If there wasm't a node in the middle it would have been assigned to the end of the path and thought this way the drawing is looking more organized in outlines only display mode.
(Theoretically a 1 noded path can be used as well but with no segments the orientation can't be assigned right. Meaning that path would need to be of a curved segment, so it wouldn't be a simpler solution -one node+2 handle coordinates vs. nodes.)

Moini wrote:Anybody tried the Scatter extension? It works without distortion.

As far as I can recall used it here. In that drawing keeping the orientation and only translating the base object was a must. (Although it didn't get me closer to constructing an exact trace of the duplicants.)

Raspi
Posts: 179
Joined: Fri Oct 21, 2016 12:51 am

Re: Bending without distorting

Postby Raspi » Fri Jan 27, 2017 11:37 pm

I was wondering if you can perhaps add nodes to a helper path and then snap the centerpoints of the desired pattern elements manually.

Or maybe perform the node adding to a straight path and then add the Bend LPE.


Another idea is to scatter a circle along the path and later transform individually.


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: Baidu [Spider] and 9 guests