Masks
What a Mask is for
Section titled “What a Mask is for”A Mask means you don’t have to paint carefully inside your lines. You could paint carefully and get the same picture. With a Mask, paint that goes outside the lines doesn’t show.
For example, say you’ve drawn a character’s outline with vector strokes and want to colour the skin on a raster layer.
Without a Mask, you paint carefully up to the lines. If you later sculpt the outline, the colour no longer lines up and you repaint the edge.
With a Mask, you paint loosely and go over the lines as much as you like. The Mask hides every part of the layer that is outside the outline, so you only see colour inside the shape. When you sculpt the outline, the hidden area changes with it and the colour follows the new shape.
So “painting inside a shape” is what you get, and “hiding part of the layer” is how Soft Edge does it. Nothing is erased: paint outside the shape is still on the layer, only hidden. Turn the Mask off, or move the line outward, and it shows again.
A Mask hides paint. It doesn’t stop the brush. You can paint anywhere on the layer and the Mask decides what is visible.
Only raster layers can have a Mask for now.
Colour inside a shape
Section titled “Colour inside a shape”- Draw the outline on a vector layer. Keep it in one vector group, closed or nearly closed. Small gaps at the ends of strokes are closed for you.
- Make a new raster layer below the vector layer and keep it selected.
- Click add mask at the top of the Outliner. A Mask row appears under the layer.
- Drag the outline’s vector group from the Outliner onto the Mask row. Or click the ⊕ on the Mask row and pick the group under Anchor.
- Press
Gfor the paint bucket and click the canvas. The layer fills with your colour, and you see it only inside the outline. Or paint loosely with any brush. - Sculpt the outline. The colour follows.
How a vector group becomes a shape
Section titled “How a vector group becomes a shape”Every vector group gives one shape: the area its strokes enclose. This shape is the group’s automask. You don’t set it up. It is worked out when a Mask uses the group and again each time you change its strokes. While that happens, the Mask row shows a spinner and the last result stays on screen.
- Gaps at the ends of strokes are joined if they’re short, or if joining them closes a wide area. A wide opening with little behind it stays open.
- A closed shape inside another, in the same group, cuts a hole. Put it in its own group if you don’t want the hole.
- Small loops from detail marks can leave holes. Keep the outline in one group and details such as creases and hatching in another.
When the automask is wrong, fix it with a Paint row (below). The automask itself can’t be edited.
Automask settings
Section titled “Automask settings”Select a vector group to see these under Automask in Selection Details. Both are off by default.
- walls: close against other groups. The group’s shape can also close against strokes in other groups. Use it for loose, open shapes, such as hair drawn around a face, where the hair strokes alone don’t enclose anything.
- guide: guide lines. The group is not drawn in the picture or in exports. It shows as a coloured overlay, and its strokes close every other group’s shape. Use it to close a shape where the picture should have no line. The eye only hides the overlay.
Mask rows
Section titled “Mask rows”A Mask is a list of rows. They apply from the bottom up, starting with the whole layer visible. Click a row to see its settings in Selection Details.
| Row | What it does | Settings |
|---|---|---|
| Anchor | A vector group’s shape | edge, blend, opacity |
| Paint | Greyscale paint you put in by hand | base, blend, opacity |
The ⊕ on the Mask row adds a row: an Anchor for any vector group, or a Paint row.
- edge (Anchor): where the border of the shape sits across the width of the line. centre is the middle of the line. Move it to put the edge on the inside or the outside of the line.
- blend: how the row combines with the rows below it.
- multiply: keep only what is inside this row too. The default for an Anchor.
- add: show this row’s area as well.
- subtract: hide this row’s area.
- normal: replace what is below. The default for a Paint row.
- opacity: how strongly the row acts.
- The eye on a row turns that row off. The eye on the Mask row turns the whole Mask off.
Two Anchors are enough for most combinations. A face with multiply and a beard with add shows both. A face with multiply and the eyes with subtract leaves holes for the eyes.
Paint rows
Section titled “Paint rows”Use a Paint row to fix an automask by hand, or to make a Mask with no vector strokes at all.
Select a Paint row and the brush paints into the Mask instead of the layer:
- White shows the layer. Black hides it. Your colours switch to white and black while the row is selected, and switch back when you leave it.
Alterases back to the row’s base.- The paint bucket (
G) and the gradient (Shift+G) work on Paint rows too.
The base is the row’s value wherever you haven’t painted: empty (leaves the rows below as they are), white or black. Pick it when you add the row, or change it in Selection Details.
To fix an automask, add a Paint row above the Anchor with base empty. Paint white where colour is missing and black where it spills.
Seeing the Mask
Section titled “Seeing the Mask”Alt+click the Mask row, or click its view icon. The canvas shows the Mask in grey: white is visible, black is hidden. The picture is drawn faintly over it; the slider in the bar at the top of the canvas sets how faint. Click the bar’s close button to go back.
Selecting a Paint row turns this view on by itself.
Deleting a group a Mask uses
Section titled “Deleting a group a Mask uses”Deleting a vector group that an Anchor uses asks first:
- Cancel
- Delete: the Anchor row stays, shown in red as a missing group, and counts as an empty shape. With multiply that hides the whole layer, so remove the row or change it.
- Convert to paint and delete: the Anchor becomes a Paint row that keeps its current shape, so the picture doesn’t change.
Deleting strokes inside the group doesn’t ask.
Photoshop export
Section titled “Photoshop export”File > Export > Photoshop… turns each Mask into that layer’s layer mask.