I have attached for you here a package which contains some LayerMask method extensions (like Add/Remove to/from LayerMask as well as a ContainsLayer check). Please import the package and the extensions methods will show up under “LayerMask/Methods/Extensions” in the node browser for you to use. You can for example drag and drop a LayerMask output port as normal and under “LayerMask/Methods/Extensions” all the new methods will show up to be used as nodes.