Track matte
set_track_matteApplies a layer as another layer's track matte using alpha or luma channels, including inverted modes, or removes it. Use it to mask footage without manual matte layer setup.
Instructions
Use another layer as the track matte of a layer (alpha / alpha_inverted / luma / luma_inverted), or remove it (type 'none'). Uses AE 2023+ setTrackMatte (any layer can be the matte); on older AE the matte is moved directly above. The matte layer's video is switched off unless hideMatte=false.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layer": "<layer>"
},
"name": "set_track_matte"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| type | No | Matte type (default alpha). | |
| layer | Yes | The layer that receives the matte. | |
| matte | No | The layer used as matte (required unless type='none'). | |
| hideMatte | No | Turn off the matte layer's video switch (default true). |