setLayerMask
Create or modify layer masks in an After Effects composition, controlling shape vertices, mode, feather, opacity, expansion, and inversion.
Instructions
Create or modify layer masks (shape vertices, mode, feather, opacity, expansion, inverted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compName | No | Composition name | |
| inverted | No | Invert the mask | |
| maskMode | No | Mask blend mode | |
| maskName | No | Mask name (e.g. "Mask 1") | |
| layerName | No | Layer name | |
| maskIndex | No | Mask index (1-based) | |
| maskShape | No | Mask shape vertex data | |
| layerIndex | No | Layer index | |
| maskFeather | No | Mask feather [x, y] in pixels | |
| maskOpacity | No | Mask opacity (0-100) | |
| maskExpansion | No | Mask expansion in pixels |