: How to make a nondestructive mask in Inkscape? I wish to achieve a white icon (final result is a white PNG image with transparency). For example - I want a white rectangle with the text "NOTHING
I wish to achieve a white icon (final result is a white PNG image with transparency).
For example - I want a white rectangle with the text "NOTHING HERE" subtracted from that rectangle (I want the final PNG to have the transparency where the text is).
Doing this is very simple - I create a rectangle, add the text, then subtract the text (possibly after converting it to a path) from the rectangle.
This works, but leaves the text fixed and I can no longer edit it.
The above is a simplified description of what I'm facing. I usually don't work with just text - I need to subtract one shape from another, but I'd like to be able to keep working on the shape used for the subtraction.
I was thinking about using a mask, but I can't seem to figure out how would I use it for this case. That said, editing masks / clips is also made more difficult. Ideally I'd like to use a filter which simply makes anything below the object it's applied to "vanish", but I'm not sure which filter I should use (and how I should configure it).
EDIT: Quick note - I used to work a bit with Corel Draw. If memory serves, Corel can turn an object into a sort of mask-like filter, where it applies whatever effect you select to anything directly under the object. I believe it's called a lens. Said lenses could apply various effects (including color manipulation and more). Doesn't Inkscape have anything similar?
More posts by @Phylliss782
2 Comments
Sorted by latest first Latest Oldest Best
This is possible to do with masks, and keep the text as text. With the creative use of clones, you can also make it so the text is editable without having to release the mask too!
Here is a quick run of the steps:
First, create your rectangle that you want to 'cut' the text out of I made mine magenta
Next, duplicate the magenta rectangle, and make it 100% White.
Add your text above the white rectangle, and make the text 100% Black.
Clone the text object (Alt + D)
Select the cloned text object and the white rectangle, and group them together.
Select the Magenta rectangle, and the group containing the clone and the white rectangle, and do Edit > Mask > Set
Select the original text object, add it to a group by itself, and set the master opacity (the slider at the bottom the fill/stroke dialog) of this group to 0.
Select everything, and group it all together. To edit the text object, pick the Text tool, and click on the text to edit.
When I need to "destroy" an object (often text being converted to a path) that I might want to keep for later, I use layers.
Open the Layers dialog with Ctrl+Shift+L. Create a layer and call it something like "Text". When you are ready to finish the image, duplicate the text layer, convert it to paths (or whatever you need), and then hide the original. If I want to edit the text later, I delete the duplicate layer, and edit the original.
Keeping the "destructible" objects contained in their own layer makes the process much easier. For example, if I have a layer that is just text and I want to convert it all to path, it's a simple Ctrl+A, Ctrl+Shift+C to convert the layer.
Note: Layers aren't actually part of the SVG standard. Inkscape's implementation of a "layer" is actually an svg group (which is valid SVG) that has a special attribute so Inkscape knows to treat it differently. Toggling the visibility of a layer is OK if you are using the SVG on a web page or something, since dispaly:none is a valid attribute for a group, although it will increase the size of the SVG.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.