Inkscape.org
Beginners' Questions Is there an easy workaround for adding multiple strokes to a single object?
  1. #1
    Grenburr Grenburr @Grenburr

    Hi!

    As Inkscape cannot have multiple strokes for one object I tried a workaround:

    1. Clone the original object twice and group the clones
    2. Unset both Fill and Stroke paint of the original object (so they're undefined)
    3. Change Stroke paint and Stroke style of both clones to your liking

    The result can be easily edited, either via the original or via the clone, depending on what the edit is. See attachment.

    I have two questions:

    • Is there an easier way to do this?
    • Is there a way to make the original object in the attachment invisible?

    Thanks,

    Grenburr

    Logo Dam
  2. #2
    Polygon Polygon @Polygonโš–๐ŸŒถ

    I know Affinity Designer has this as a feature.

    Iยดd probably go with 2  separate text-objects which are not be editable at the same time - unfortunately - but changing fonts is easy.

    1. has a black stroke which order is set to "stroke/fill/markers"

    2. a duplicate with just a white stroke/no fill 

    3. select both - change fonts accordingly

    Objects can be made invisible in the Object->Objectsโ€ฆ panel

  3. #3
    Xav Xav @Xav๐Ÿ‘น
    Grenburr

    Is there a way to make the original object in the attachment invisible?

    In these situations I usually do one of two things:

    1. Hide the original behind one of the clones. You can select the clone and use Shift-D to select the original if you need to bring it to the front for subsequent editing.
    2. Hide the original by putting it onto another layer, then turning of the visibility of the layer. This can be a good approach when dealing with lots of text objects, for example, as you can put all the originals onto a single layer then show/hide them as one.

    But there is an alternative approach that I've taken to using recently when working with single objects (it doesn't work with groups). Instead of creating a clone, use Path > Linked Offset, then just don't adjust the offset (unless you want to for other reasons). This creates a path based on your original object, but it has its own fill and stroke settings. There's no need to unset the fill and stroke on the original, it can be left in place as part of the design, then you can independently set them on the linked offset. Edits to the shape of the original are immediately reflected in the linked offset.

    There are a couple of caveats to this approach:

    1. It works well in 0.92.x, but is currently broken in 1.0.x. There is a workaround that I describe here, but it makes the method more fiddly to work with. I go into some more detail on that method in my article in Full Circle Magazine issue #160 (free download). Hopefully the developers will fix this regression sooner rather than later, as it's making a really useful feature rather useless right now.
    2. Unlike clones, which are a native SVG thing, linked offsets are an Inkscape-specific thing. Inkscape creates real SVG paths for the linked offsets, so the files will still open elsewhere, but if you modify the paths in another bit of software those modifications will be lost when you reload the file in Inkscape. This is rarely an issue for most people, but is worth mentioning just in case.

     

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Is there an easy workaround for adding multiple strokes to a single object?