In Inkscape a path can consist of multiple (potentially open) subpaths that all share the same fill and stroke settings. Is it possible to do this in Sketch? I tried to make a union of three open paths but it fails.
-
1I'm not particularly familiar with either application, but the top example looks more like a 'group' than a path combining exercise.– WestsideCommented Mar 16, 2017 at 10:26
-
I am having a similar problem here. Did anyone find a workaround to combine the paths?– RenCommented Jul 19, 2019 at 10:57
3 Answers
In Illustrator this is called Combination Path. If I create one and save it as SVG, I can open it in Sketch, and it works as you want it to - similar to a group, but with shared style settings.
The problem is how to create this in Sketch directly. I'm not sure if there's an easy UI/shortcut way to do this. Using Layer>Combine>Union works to a certain degree, but it would outline open paths and perform boolean operations with all of them. One workaround is to create a union of two objects and drag your other paths inside this thing in the list view. You can then delete the two initial objects.
Or just use Inkscape, Illustrator or else to prepare your shapes there, then import them as SVG.
-
Good alternatives. You are right. In fact, creating an SVG in sketch and then opening the exported SVG file in sketch to produce a combined shape is also possible.– RenCommented Jul 21, 2019 at 14:32
As earlier comment mention, the equivalent to Inkscape Path > Combine in Sketch is Arrange > Group Layers.
Both are a type of grouping where all information is maintained about the paths you group. In Inkscape you can still edit the different paths individually after you apply Path > Combine, the same is true in Sketch for Arrange > Group Layers.
-
I don't think this is true. You can group objects in Inkscape too but when combining objects in Inkscape they behave as a single object with one unified fill and stroke. Groups in Sketch don't behave that way.– filipCommented Mar 23, 2017 at 7:51
-
Not really. Groups and Combined entities are different in Sketch.– RenCommented Jul 19, 2019 at 11:00
You can try joining the paths by selecting both paths and the going to Layer->Path->Join. This might not work as you want since when you join the paths, it will unify them. This might cause another vector to be created. It depends solely on the vectors.