Roto Mask(RotoMaskStage)
Roto Mask (RotoMaskStage) is a ComfyTV video effect node in the ComfyTV/VideoFX category.
Roto Mask Stage
Description
Roto Mask (RotoMaskStage) is a ComfyTV video effect node in the ComfyTV/VideoFX category. It applies a rotoscoped mask to a video clip and returns the masked result as a COMFYTV_VIDEO. The node exposes an invert toggle so the same roto shape can be used either to keep the selected region or to keep everything outside it.
As a "stage" node, it is intended to sit in a chain of ComfyTV video nodes: the clip enters, the mask is applied, and the result is passed on to further effects or to a video output/save node.
Inputs
video
- Type:
COMFYTV_VIDEO - Required: No (optional)
The source video clip that the roto mask is applied to. Connect the output of an upstream video node here. Because this input is optional, the node can exist in a workflow without a connected clip; in that case there is no source video for the stage to process, so make sure to connect a clip when you expect a masked result.
invert
- Type:
BOOLEAN - Required: Yes
- Default:
false
Controls which side of the roto mask is kept in the output.
false(default): the mask is applied as authored, keeping the selected region and masking out the rest.true: the mask is inverted, so the previously excluded region becomes the visible part and the selected region is masked out.
Inverting is useful for switching between a subject matte and a background matte without redrawing the roto shape.
Outputs
COMFYTV_VIDEO
The processed video with the roto mask applied. The connection is a single COMFYTV_VIDEO output, suitable for chaining into other ComfyTV video nodes or into a downstream video output/save node.
Usage Notes
- The
invertinput is listed beforevideoin the node definition, so both controls appear together on the node; connect the source clip tovideoand setinvertto choose the matte direction. - Use
invertas a quick A/B switch when setting up a shot: one setting isolates the subject, the other isolates the background. - Since
videois optional, double-check that an upstream clip is actually connected before relying on the output; an unconnected stage has nothing to mask. - Keep the node in the
ComfyTV/VideoFXpart of the graph, alongside other ComfyTV video effect stages, so the intermediateCOMFYTV_VIDEOtype is preserved through the chain.
Comments
Sign in with GitHub to join the discussion.