Selected vertices to paint mask?

Hi!

I’m learning with sculpting and just discovered Paint mask. Pretty useful for not letting edges of the mesh going crazy. I know about Mesh boundary mode in Tools, but I’m looking more for something that would smooth out brushes closer to the edge.

Currently experimenting with different ideas, like converting selected vertices via geometry nodes (all faces at the mesh’s border) into Pain mask, for example. But I’m unsure how to do that.

image

And maybe there’s some completely different approach I’m not considering. Please, advise what’s the easiest solution for this!

Thank you!

If you configure Expand tool like that, you should obtain desired behavior.

expand_tool_boundary

Well, this is pretty time consuming. I was hoping for ability to not to do this all manually per each stroke.

That’s why am I looking for an option to somehow create these boundaries via GN nodes, so I don’t have to do this every time I use any brush.

For the moment, only one mask is supported.
It is planned to change them into regular attributes to store several of them.

I know there were sculpting addons to store masks as weight groups. I don’t know if they are still working with 3.6.
But without addons, you can invert mask to paint a color attribute and store mask as is.
Then, you can use Mask by Color tool to recreate same mask.

But you don’t have to repeat it at each stroke.
Masking is working as long as mask exists, and is not erased.
So, that is not very much more time consuming than activating/deactivating masking, if mask was stored.

GN nodes are a modifier. Except Multiresolution modifier, most of them are ignored by sculpt mode.
So, GN are not useful for sculpting, not necessary to create attributes.
Using sculpt tools to create attributes should be satisfying.