第三方插件 ComfyUI-KJNodes

Spline Editor

Spline Editor 199

用于创建和编辑样条曲线。它允许用户通过图形界面定义控制点,选择插值方法,并对生成的曲线进行采样,以生成一系列值或蒙版。Spline

节点中英文对比

按当前节点配置,分别展示中文与英文节点结构。

中文节点
Spline Editor
  • bg_image
  • 遮罩
  • coord_str
  • float
  • count
  • normalized_str
  • points_store
    coordinates
    mask_width
    mask_height
    points_to_sample
    sampling_method
    interpolation
    tension
    repeat_output
    float_output_type
    min_value
    max_value
    英文节点
    Spline Editor
  • bg_image
  • mask
  • coord_str
  • float
  • count
  • normalized_str
  • points_store
    coordinates
    mask_width
    mask_height
    points_to_sample
    sampling_method
    interpolation
    tension
    repeat_output
    float_output_type
    min_value
    max_value

    参数说明

    依据当前节点关联的 `NodesItems` 数据展示输入、输出与控件说明。

    输入参数
    bg_image bg_image
    可选背景图像,在 UI 中显示 spline 参考背景。
    输出参数
    遮罩 mask
    由 y 值生成的灰度图掩码,可用于控制图像区域影响。
    coord_str coord_str
    原始控制点坐标字符串(JSON)。
    float float
    插值后的 y 值数组,可用于调度、权重等用途。
    count count
    输出 float 的数量,受 repeat_output 控制。
    normalized_str normalized_str
    归一化后的坐标字符串(JSON 格式)。
    控件参数
    points_store points_store
    控制点存储用字符串,内部用于状态管理,不建议手动填写。
    coordinates coordinates
    控制点坐标字符串,来源于 UI 编辑,格式为 JSON。
    mask_width mask_width
    输出掩码的宽度,单位像素。
    mask_height mask_height
    输出掩码的高度,单位像素。
    points_to_sample points_to_sample
    需要从 spline 曲线上采样的点数。
    sampling_method sampling_method
    曲线采样方式。path 表示沿路径等距,time 表示时间轴均匀,controlpoints 为插值控制点。建议用于 schedule 用途时选择 time,路径动画时选 path。
    interpolation interpolation
    插值类型。 cardinal:自然样条,平滑曲线,张力可调。 monotone:保形曲线,避免过冲。 basis:B 样条平滑插值。 linear:线性插值。 step-before/step-after:阶梯式跳变插值。 polar/polar-reverse:极坐标样式曲线,实验性。
    tension tension
    曲线张力参数,仅部分插值方法(如 cardinal)有效,范围 0~1。
    repeat_output repeat_output
    输出的浮点数重复次数,适用于循环帧数据。
    float_output_type float_output_type
    输出格式,支持 list、pandas series、tensor。
    min_value min_value
    映射后的最小值(默认 0)
    max_value max_value
    映射后的最大值(默认 1)。

    详细说明

    结合节点用途、参数和调用方式,给出更完整的说明内容。

    暂无节点说明

    同类节点导航

    继续浏览同一分类下的相邻节点,方便串联学习。