Making a Sculpting Mask From an Edit Mode selection

Forum Archive Making a Sculpting Mask From an Edit Mode selection

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16748
    Ethan ⚡️
    Participant

      This was a super handy tip!

      If anyone finds it useful, I abstracted the main steps into a Python script that can be run in the Blender text editor:

      import bpy
      
      ############################################################## # Run this while in Edit Mode after making a selection. ##############################################################
      # Hide Unselected
      bpy.ops.mesh.hide(unselected=True)

      # Enter Sculpt Mode
      bpy.ops.sculpt.sculptmode_toggle()

      # Mask > Fill Mask
      bpy.ops.paint.mask_flood_fill(mode='VALUE', value=1)

      # (Re)Show Hidden
      bpy.ops.sculpt.reveal_all()
      #80726
      Kent Trammell
      Participant

        This is amazing! Thanks for taking the initiative and sharing 🤝

        #80727
        Nathi Tappan
        Participant

          Agreed! Super helpful tip! And super awesome that you shared this script.

          I wonder, however, if this workaround is still needed in Blender 4x? I’m noticing some other updates in the masking features and a couple of menus too, so it’d be cool if they also addressed this part of the mesh selection workflow? 

          Either way, it’s such an easy workaround that even if not, we’re covered!

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Making a Sculpting Mask From an Edit Mode selection’ is closed to new replies.