Create Text Mask
节点功能:将文本渲染为图像,并同时生成相应的蒙版。Create Text
节点中英文对比
Create Text Mask
invert
frames
text_x
text_y
font_size
font_color
text
font
width
height
start_rotation
end_rotation
Create Text Mask
invert
frames
text_x
text_y
font_size
font_color
text
font
width
height
start_rotation
end_rotation
Create Text Mask - 参数说明
输出参数
IMAGE
渲染出的图像序列,包含文字内容。
MASK
文字区域对应的掩码(单通道)。
控件参数
invert
是否反转图像和掩码(1→0,0→1)。
frames
要生成的图像帧数。
text_x
文本起始的 X 坐标。
text_y
文本起始的 Y 坐标。
font_size
字体大小。
font_color
字体颜色(如 "white"、"#FF0000")。
text
要绘制的文本内容(支持多行)。
font
字体文件名,从 ComfyUI-KJNodes/fonts 目录中加载。
width
输出图像的宽度。
height
输出图像的高度。
start_rotation
起始帧的文字旋转角度(单位为度)。
end_rotation
最后一帧的文字旋转角度。
暂无节点说明