Convert marker to object

Post questions on how to use or achieve an effect in Inkscape.
veger
Posts: 1
Joined: Wed Nov 06, 2013 9:36 pm

Convert marker to object

Postby veger » Wed Nov 06, 2013 9:41 pm

Hello,

I need to import Inkscape files into an application that does not support markers.
So, I would like to convert used markers into objects (shapes or paths) while preserving the same orientation and position as the marker had.

I know about the 'Objects to marker' feature, is there a (sort of) 'reverse' feature as well that converts the markers of selected paths?

Cheers,

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

Re: Convert marker to object

Postby Lazur » Mon Jan 20, 2014 11:46 am

Hi,

there is a reverse option for custom made markers in an svg document.
For the default marker objects, you can open the file share/inkscape/markers/markers.svg to see them all.
Markers are stored in the def section of svg documents, inkscape only uses an url to call them if they are set on a path.
By the application not supporting markers, I'm wondering how could you align, scale, and rotate the markers to the right positions.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Convert marker to object

Postby ~suv » Tue Jan 21, 2014 4:18 am

'Path > Stroke to Path' might help (it converts markers into a group of objects).

If you need to keep the original path as a stroked path (i.e. not outlined):
  1. duplicate original path which uses markers (Ctrl+D)
  2. select duplicated path
  3. apply menu 'Path > Stroke to Path' (Ctrl+Alt+C)
    (creates a group containing the outlined paths, and the markers as separate objects)
  4. enter the group (Ctrl+Enter), use <TAB> to select bottom-most object (the outlined path) and delete it
  5. leave group (Ctrl+Backspace)
  6. select original path and remove markers (via Fill & Stroke dialog)

akihikoy
Posts: 1
Joined: Sun Sep 30, 2018 2:57 am

Re: Convert marker to object

Postby akihikoy » Sun Sep 30, 2018 3:05 am

Hi, is this topic still active?

I tried this way:
Path > Stroke to Path' might help (it converts markers into a group of objects).

However it says no path is selected, and nothing happens.

Is there another way to convert a marker to a path?

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Convert marker to object

Postby druban » Sun Sep 30, 2018 8:17 am

you have to select the path first before stroke to path, make sure it is not in a group. it will be converted into a group. it may be useful to copy the path first so you can reinstate a stroked path and delete the filled path, keeping the markers. Note that the markers will be objects and no longer connected to nodes on the path
Your mind is what you think it is.


Return to “Help with using Inkscape”