convert_mask_to_shape
Convert mask layers to shape layer paths in Adobe After Effects compositions to enable vector-based editing and animation.
Instructions
Convert a mask to a shape layer path
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": {
"compId": "<compId>",
"layerIndex": "<layerIndex>",
"maskIndex": "<maskIndex>"
},
"name": "convert_mask_to_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compId | Yes | ID of the composition | |
| layerIndex | Yes | Index of the layer with mask | |
| maskIndex | Yes | Index of the mask to convert | |
| createNewLayer | No | Create a new shape layer (vs add to existing) | |
| targetLayerIndex | No | Target shape layer index (if not creating new) |