[solved] How to realize unrotated markers?

Post questions on how to use or achieve an effect in Inkscape.
theozh
Posts: 266
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 191 times
Last edited by theozh on Fri Apr 21, 2017 4:14 pm, edited 1 time in total.
Win7/64, Inkscape 0.92.1 r15371

tylerdurden
Posts: 1497
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 0.92 64 bit win8.1


The tutorials in the Inkscape Help menu are fun and the best place to start.

Most other answers are in the Inkscape Manual! :-)
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html

Moini
Posts: 1597
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: 1597
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: 1597
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: 1497
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 0.92 64 bit win8.1


The tutorials in the Inkscape Help menu are fun and the best place to start.

Most other answers are in the Inkscape Manual! :-)
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html

User avatar
brynn
Posts: 9111
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: 1497
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 0.92 64 bit win8.1


The tutorials in the Inkscape Help menu are fun and the best place to start.

Most other answers are in the Inkscape Manual! :-)
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html

Moini
Posts: 1597
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: 266
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.1 r15371


Return to “Help with using Inkscape”

Who is online

Users browsing this forum: No registered users and 6 guests