Create Text On Path

节点功能:用于在指定路径上创建文本图像和掩码。该节点可以根据提供的坐标路径,在每个坐标点位置生成指定文本的图像和掩码。Create Text On
节点中英文对比
Create Text On Path
  • coordinates
  • size_multiplier
  • image
  • 遮罩
  • mask_inverted
  • text
    frame_width
    frame_height
    font
    font_size
    alignment
    text_color
    Create Text On Path
  • coordinates
  • size_multiplier
  • image
  • mask
  • mask_inverted
  • text
    frame_width
    frame_height
    font
    font_size
    alignment
    text_color
    Create Text On Path - 参数说明
    输入参数
    coordinates
    文本中心位置坐标列表,格式为 JSON 字符串。每一项代表一帧的文字位置。
    size_multiplier
    字体大小乘子,列表形式用于控制每帧缩放比例。
    输出参数
    image
    每帧文本绘制后的图像,RGB 格式,背景为黑色。
    mask
    每帧中非黑区域(即文字区域)形成的单通道遮罩,值域为 [0.0, 1.0]。
    mask_inverted
    mask 的反转版本,即非文字区域为 1.0,文字区域为 0.0 的遮罩。
    控件参数
    text
    要绘制的文本内容,支持多行输入。
    frame_width
    输出图像的宽度,单位为像素。
    frame_height
    输出图像的高度,单位为像素。
    font
    字体文件名,需位于 ComfyUI/custom_nodes/kjnodes_fonts/ 目录下。
    font_size
    字体的初始大小,单位为像素。
    alignment
    文本对齐方式,可选值为 left、center、right。推荐使用 center 使位置保持一致性。
    text_color
    文本颜色,如 'white'、'#ff0000' 或 rgb() 格式。
    暂无节点说明
    节点列表 首页