Set mask properties
set_mask_propertiesChange a mask's name, mode, inversion, feather, opacity, expansion, motion blur, color, lock, or RotoBezier; optionally keyframe feather, opacity, and expansion at a given time.
Instructions
Change properties of one mask (by index or name): rename, mode, inverted, feather, opacity, expansion, motion blur, feather falloff, color, locked, RotoBezier. With 'time', feather/opacity/expansion are keyframed at that time.
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>",
"mask": "<mask>"
},
"name": "set_mask_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| mask | Yes | Mask: 1-based index or mask name (e.g. 'Mask 1'). | |
| mode | No | Mask mode. | |
| time | No | Keyframe feather/opacity/expansion at this time. | |
| color | No | Mask outline color in the UI. | |
| layer | Yes | Layer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer. | |
| locked | No | Lock the mask. | |
| feather | No | Mask feather px: number or [x,y]. | |
| newName | No | Rename the mask. | |
| opacity | No | Mask opacity 0-100. | |
| inverted | No | Invert the mask. | |
| expansion | No | Mask expansion px (negative shrinks). | |
| motionBlur | No | Mask motion blur. | |
| rotoBezier | No | Use RotoBezier for the path. | |
| featherFalloff | No | Feather falloff. |