Paint > Shape > Make Invisibility Mask Shape

Creates an invisibility mask from curves.

Ensure that you are working on a paint layer. Invisibility mask shapes cannot be created on shape layers.