[solved] How to realize unrotated markers?

Post questions on how to use or achieve an effect in Inkscape.
theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

[solved] How to realize unrotated markers?

Postby theozh » Fri Apr 21, 2017 6:12 am

Is there a way preventing markers from rotating with the path? By default they are oriented perpendicular to the path or at corner nodes the average of the two slopes.
If this can't be realized an alternative (workaround): how to automatically place a given object at every node of a path?

Left: markers are rotating with the path
Right: markers unrotated

UnrotatedMarkers.png
UnrotatedMarkers.png (9.55 KiB) Viewed 1462 times
Last edited by theozh on Fri Apr 21, 2017 4:14 pm, edited 1 time in total.
Win7/64, Inkscape 0.92.2

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

Re: How to realize unrotated markers?

Postby tylerdurden » Fri Apr 21, 2017 6:24 am

I was wondering the same earlier today, and took a look inside the number-nodes extension.

It might be easier to hack the number-nodes extension, since it is accessible to copy/modify and uses text. The text elements are all vertical, so if a new extension allowed a glyph instead of a generated number, a dingbat/wingding/custom glyph might be used.

Thoughts?
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: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to realize unrotated markers?

Postby Moini » Fri Apr 21, 2017 6:30 am

Open the XML editor. Find the defs section. Find your marker in the defs section. Set the value of 'orient' from 'auto' to an angle in degrees.
See also: http://tutorials.jenkov.com/svg/marker- ... rientation
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: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to realize unrotated markers?

Postby Moini » Fri Apr 21, 2017 6:31 am

(didn't know that, either - thanks for asking, theoz :D)
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: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to realize unrotated markers?

Postby Moini » Fri Apr 21, 2017 6:40 am

Related bug report...: https://bugs.launchpad.net/inkscape/+bug/1685025 (stroke to path doesn't take the changed orientation into account :-/)
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: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: How to realize unrotated markers?

Postby tylerdurden » Fri Apr 21, 2017 8:37 am

Ok.... this is ugly. But it does leave the markers and no path.

Image
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: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to realize unrotated markers?

Postby brynn » Fri Apr 21, 2017 8:59 am

I'd probably say more clever than ugly :D

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

Re: How to realize unrotated markers?

Postby tylerdurden » Fri Apr 21, 2017 11:33 am

It seems if your markers are big enough, you don't need to split them off of the dots...

SVG Image
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: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: How to realize unrotated markers?

Postby Moini » Fri Apr 21, 2017 11:47 am

Ooh, that's another one to add to the FAQ 'why can't I edit this object's parts?' (along with the object being locked, a bitmap, grouped, a clone, a symbol, a pattern, having an LPE applied - now a large marker) ;-D
Last edited by Moini on Sat Apr 22, 2017 12:11 am, edited 1 time in total.
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: [solved] How to realize unrotated markers?

Postby theozh » Fri Apr 21, 2017 4:16 pm

tylerdurden wrote:I was wondering the same earlier today, and took a look inside the number-nodes extension.
@tylerdurden, your comment on this post viewtopic.php?f=5&t=32249
actually was triggering this question.

Thanks @Moini, I never would have found that one...
And along the way another bug was discovered :-)
Win7/64, Inkscape 0.92.2


Return to “Help with using Inkscape”