Convert mask to shape layer
convert_mask_to_shapeCopies mask paths from a layer into a new shape layer with fill and path keyframes, with options to copy transform or parent to the source.
Instructions
Copy mask path(s) of a layer into a NEW shape layer (one group per mask with a fill, mask path keyframes included), placed above the source and aligned with it. alignment='copy' (default) copies the source's parent and transform values at the current time; 'parent' parents the shape layer to the source so it follows its animation; 'none' leaves the new layer at default transform. Mask modes/inversion/feather are not converted (reported as warnings).
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": "convert_mask_to_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| fill | No | Fill color (default white; false/'none' = no fill). | |
| name | No | New layer name (default '<source> Mask Shapes'). | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| masks | No | Masks to convert (default all). | |
| stroke | No | Optional stroke color. | |
| alignment | No | How to align the new layer with the source (default copy). | |
| removeMasks | No | Delete the converted masks from the source layer afterwards. | |
| strokeWidth | No | Stroke width px (default 2). | |
| useMaskColors | No | Fill each shape with its mask's UI color (when fill is not given). |