Make Stroke Part of the Fill?

Post questions on how to use or achieve an effect in Inkscape.
DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Make Stroke Part of the Fill?

Postby DavidBrennan » Sun Oct 07, 2012 7:17 am

I have a few objects which I then inflated simply by adding a Stroke to it. (So the Stroke is obviously the same color as the Fill.) Looks good!

However, because the program I'd like to export this shape to (Blender) does not recognize Strokes, but instead just the .SVG outline, I would like to somehow convert the Stroke to the Fill. Is there an automatic way to achieve this? So if you have the letter "B", and then it gets inflated into "B" via stroke, that it will retain the "B" shape entirely using Fill, and no Stroke data at all.

I know that one option is to use the Paint Bucket. However, there are two problems with that: (1) it's time-consuming and (2) it's not necessarily all that precise.

There have been several times where this would have been helpful to me in the past, and the Paint Bucket was always a suitable work-around. But now, that is just time-prohibitive. Any solutions?

Thanks as always.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Make Stroke Part of the Fill?

Postby brynn » Sun Oct 07, 2012 10:43 am

I can think of a couple of potential options, but none that are both fast and precise.

One would be using Path menu > Outset, instead of adding the stroke. However, this has the same problem as the Paint Bucket tool has with precision.

You could Duplicate the object, and do Path menu > Stroke to Path. Next, select both original and the newly created path, and do Path menu > Union. But perhaps this will be too much work?

DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Re: Make Stroke Part of the Fill?

Postby DavidBrennan » Sun Oct 07, 2012 12:11 pm

brynn wrote:I can think of a couple of potential options, but none that are both fast and precise.

One would be using Path menu > Outset, instead of adding the stroke. However, this has the same problem as the Paint Bucket tool has with precision.

You could Duplicate the object, and do Path menu > Stroke to Path. Next, select both original and the newly created path, and do Path menu > Union. But perhaps this will be too much work?

The part I emboldened and italicized is exactly what I was seeking. Path > Stroke to Path (at least in my attempts) simply applies the Stroke area to the original Fill as a full shape. So it's working great. Thanks!

(Now if I could just get this Snapping to work more reliably!)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Make Stroke Part of the Fill?

Postby brynn » Sun Oct 07, 2012 9:57 pm

I could offer several tips for helping make snapping work more reliably, but it would be tedious to write them all, since I don't know your specific issue. But one thing I could say, that might help is this. Be sure that you only have the buttons on the snap control bar engaged, for the task at hand. If you have more than....I'd say 4 or 5 engaged, your object will be trying to snap to too many targets. But if you have it set up so that it only snaps what you need, it will be much easier. For example, I never have buttons engaged for bounding box and nodes/handles at the same time. Also, if you must have several snap targets engaged (for some reason) it helps to zoom in to do the snapping. That makes it easier to avoid the other targets.

If you can describe the trouble you're having, we might be able to offer more tips. Also, be sure to look up snapping in the manual. :D

DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Re: Make Stroke Part of the Fill?

Postby DavidBrennan » Mon Oct 08, 2012 7:29 am

brynn wrote:I could offer several tips for helping make snapping work more reliably, but it would be tedious to write them all, since I don't know your specific issue. But one thing I could say, that might help is this. Be sure that you only have the buttons on the snap control bar engaged, for the task at hand. If you have more than....I'd say 4 or 5 engaged, your object will be trying to snap to too many targets. But if you have it set up so that it only snaps what you need, it will be much easier. For example, I never have buttons engaged for bounding box and nodes/handles at the same time. Also, if you must have several snap targets engaged (for some reason) it helps to zoom in to do the snapping. That makes it easier to avoid the other targets.

If you can describe the trouble you're having, we might be able to offer more tips. Also, be sure to look up snapping in the manual. :D

Thanks for the suggestions, Brynn. They all seem like good advice (although even these sorts of things haven't made Snapping too reliable, in my experience). I wasn't referring to anything specific, but just the overall sketchiness of the Snapping To. I was just having fun with my grip because, right as your explanation of how to convert the Stroke to Fill worked out, I then had trouble snapping it where I wanted to go. It was nothing major, just one of those, ya know, everyday frustrations.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Make Stroke Part of the Fill?

Postby brynn » Mon Oct 08, 2012 12:23 pm

Ok, no worries then :D

But snapping can be very reliable. When I first started to learn about it, I thought it was sketchy too. But it's SO not sketchy. When the time is right, let us know :D

DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Re: Make Stroke Part of the Fill?

Postby DavidBrennan » Mon Oct 08, 2012 12:28 pm

brynn wrote:Ok, no worries then :D

But snapping can be very reliable. When I first started to learn about it, I thought it was sketchy too. But it's SO not sketchy. When the time is right, let us know :D

Thanks. And don't worry, I'm not shy about asking for help here at these forums. In fact, I usually NEED it! Thanks again.


Return to “Help with using Inkscape”