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)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "setLayerMask"
}
}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 |