Mask a source to a shape
set_source_shapeApply a shape mask to a video source: circle for webcams, rounded rectangle for custom corners, or clear the mask. Set radius for rounded corners and choose format.
Instructions
Mask a source to a shape. shape='Circle' inscribes a circle (great for round webcam cams); 'RoundedRectangle' uses radius (pixels); 'RoundedRectangle9x16' for portrait; 'None' clears the mask. format omitted applies to both canvases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | ||
| format | No | ||
| radius | No | Corner radius in px (RoundedRectangle only). | |
| scene_id | No | ||
| source_id | Yes |