design_set_mask
Applies a mask to a design layer by clipping it with an earlier source layer, supporting alpha, inverted-alpha, and luminosity modes. Use it to control layer visibility.
Instructions
Apply a mask to a design layer. The mask source layer clips the target layer. Modifier-path layers (painting:, adjust:, filter:*) cannot be masked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | ID of the layer to mask. | |
| maskMode | No | alpha: show where mask is opaque (default); inverted-alpha: show where mask is transparent; luminosity: modulate by mask brightness. | |
| maskLayerId | Yes | ID of the layer to use as the mask source (must be earlier in the stack). |