Files
da2el-aiandClaude Opus 5.5 9cd412e79f docs: document LIST/ARRAY renaming and D2 List Converter and bump to 43.0.0
Add a 2026.11.04 notice to README explaining that many node inputs and
outputs were renamed or reordered and need reconnecting, and update the
ja/en/zh node docs and changelog for LIST/ARRAY, x / y_items, the new
D2 List Converter and the deprecated list nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 01:16:42 +09:00

11 KiB
Raw Permalink Blame History

English | 日本語 | 繁体中文

Node

TIPS

  • 我寫了一篇整理 XY Plot 使用方法的文章,也請一併參考。

  • 請參考範例工作流程。

  • 處理順序為 x_items > y_items。當順序很重要時(例如提示詞的改寫),請確保排列為 x > y。

  • 會先處理完所有 x_items 後再進入下一個 y_items。對於 Checkpoint 載入等較重的處理,建議使用 y_items。

  • 輸出列表的節點具有以下 3 種輸出。

    • x / y_items:換行分隔的文字。連接到 D2 XY Plot 的 x_items / y_items
    • LIST:逐一輸出每個元素(ComfyUI 的 list)。連接的節點會依元素數量執行。連接到 ComfyUI 內建的 Start Loop(List 模式)即可循環
    • ARRAY:將陣列作為單一值輸出(ComfyUI 內建的 Array 型別)。可用 D2 List Converter 轉換為其他格式

🍅 XY Plot Node

D2 XY Plot Easy / Easy Mini

  • 一個可建立限定於 KSampler 項目的簡化工作流程 XY Plot 的節點
  • Easy Mini 是排除了使用頻率較低的輸出、尺寸更小的節點

輸入

  • positive / negative / seed / steps / cfg / sampler_name / scheduler / denoise
    • 傳遞給 KSampler 的設定
  • ckpt_name
    • 傳遞給 D2 Checkpoint Loader 的 Checkpoint 模型
  • unet_name
    • 傳遞給 D2 Load Diffusion Model 的 Diffusion 模型
  • ckpt_type
    • 選擇使用 ckpt_name 或 unet_name
    • stable_diffusion:將 ckpt_name 用於 ckpt_name 輸出
    • diffusion:將 unet_name 用於 ckpt_name 輸出
  • x_type / y_type
    • 指定要在 XY Plot 中執行的項目
    • 當指定為 STRING、INT、FLOAT 時,將從 x_other、y_other 輸出
  • x_items / y_items
    • XY Plot 的變更內容
    • 因為是換行分隔的文字,所以也可以使用其他節點輸入
  • auto_queue
    • true:自動執行所需次數的 Queue
    • false:手動執行 Queue
  • Reset index
    • 中途停止時使用此按鈕重置索引

輸出

  • xy_pipe
    • 統一輸出用於 D2 KSampler 的參數
  • grid_pipe
    • 統一輸出用於 D2 Grid Image 的參數 x_annotation y_annotation status
  • positive / negative / seed / steps / cfg / sampler_name / scheduler / denoise
    • 傳遞給 KSampler 的參數
  • ckpt_name
    • 由 ckpt_type 選擇的模型名稱(stable_diffusion 時為 ckpt_name,diffusion 時為 unet_name)
  • ckpt_type
    • 將輸入中選擇的 ckpt_type 原樣輸出
  • x_other / y_other
    • 當 x_type y_type 設定為 STRING INT FLOAT 時從此處輸出
  • x_annotation / y_annotation
    • 連接至 D2 XY Grid Image 的標題文字
  • status
    • 連接至 D2 XY Grid Image 的控制信號
  • index
    • 目前的處理次數

D2 XY Plot

  • 可創建通用 XY Plot 工作流程的節點
  • X / Y 輸入為簡單的換行分隔文字,易於與其他節點組合

Input

  • x_type / y_type
    • 從 STRING INT FLOAT 中指定 x_items y_items 的數據類型
  • x_title / y_title
    • 添加到標題文字的文字
  • x_items / y_items
    • XY Plot 的變更內容
    • 為換行分隔文字,可使用其他節點輸入
  • auto_queue
    • true: 自動執行所需次數的 Queue
    • false: 手動執行 Queue
  • Reset index
    • 中途停止時用此按鈕重置 index

Output

  • X / Y
    • 從 x_items y_items 獲取的元素
  • x_annotation / y_annotation
    • 連接到 D2 XY Grid Image 的標題文字
  • status
    • 連接到 D2 XY Grid Image 的控制信號
  • index
    • 當前處理次數

D2 XY Grid Image

  • 與 D2 XY Plot 連接使用的網格圖像創建節點

Input

  • x_annotation / y_annotation
    • 連接到 D2 XY Grid Image 的標題文字
  • status
    • 連接到 D2 XY Grid Image 的控制文字
    • INIT: 初始化
    • FINISH: 輸出網格圖像
    • {空字串}: 其他狀態
  • font_size
    • 標題文字的字體大小
  • grid_gap
    • 圖像間距
  • swap_dimensions
    • true: 垂直方向網格
    • false: 水平方向網格
  • grid_only
    • true: 僅輸出網格圖像
    • false: 也輸出個別圖像

Output

  • image
    • 輸出生成的網格圖像
  • memo
    • 以文字輸出生成參數的列表

memo 輸出

以文字輸出在 XY Plot 中作為比較對象的參數列表。 用意是連接到 D2 Save Image Eagle 的 memo_text。

-----------
X: positive
black hair,
blonde hair,
silver hair,

-----------
Y: steps
20
15
10

D2 XY List Collector

  • 配合 D2 XY Plot / D2 XY Plot Easy / D2 XY Plot Easy Mini 的循環執行,將 data 累積到陣列中,並在最後一次執行時一併輸出的節點
  • 累積期間不執行下游節點
  • 若 D2 XY Plot 的項目只有 1 個,不會發生 FINISH,因此不會輸出任何內容

Input

  • data
    • 要加入陣列的資料
  • skip_empty
    • true: 空字串或 0 等空值不加入陣列
    • false: 空值也照樣加入
  • xy_status
    • 連接到 D2 XY Plot 的控制文字
    • INIT: 初始化陣列
    • FINISH: 輸出陣列
    • {空字串}: 其他狀態
  • grid_pipe
    • 連接 D2 XY Plot Easy / D2 XY Plot Easy Mini 的 grid_pipe
    • 用於代替 xy_status。D2 XY Plot Easy Mini 不輸出 status,因此連接此項

Output

  • LIST
    • 逐一輸出累積的資料。連接的節點會依元素數量執行
  • ARRAY
    • 以陣列輸出累積的資料
  • 兩者皆可接受任何資料型別

D2 XY Prompt SR

  • 搜索替換輸入文字並傳遞給 D2 XY Plot
  • 也可輸出列表

Input

  • prompt
    • 提示詞。可包含換行
  • search_txt
    • 搜索目標文字。可包含多個詞
    • 不能使用換行
  • replace
    • 替換用文字
    • 因為用換行分隔,所以可以包含「,」

Output

  • x / y_items
    • 連接到 D2 XY Plot
  • LIST / ARRAY
    • 輸出替換後的文字(參見 TIPS)

D2 XY Prompt SR2

  • 搜索替換從 D2 XY Plot 接收的提示詞並傳遞給 KSampler
  • 如果要重現 Stable Diffusion webui A1111 的 Prompt S/R 請使用此節點

Input

  • x_y
    • 從 D2 XY Plot 接收的替換用文字
  • prompt
    • 替換目標文字
  • search
    • 搜索文字。可包含多個詞
    • 不能使用換行

D2 XY Seed

  • 指定 -1 時輸出隨機數值
  • 其他數值直接輸出
  • D2 XY Plot 側需要將 x/y_type 設為 INT
  • 輸出為 x / y_items / LIST / ARRAY(參見 TIPS)

D2 XY Checkpoint List / D2 XY Lora List

已刪除。請使用 D2 XY Model List 代替。


D2 XY Seed2

  • 輸出指定數量種子值的節點
  • 輸出為 x / y_items / LIST / ARRAY(參見 TIPS)

input

  • initial_number
    • 當mode設為increment、decrement或fixed時,以此值為基準
  • count
    • 要生成的種子值數量
  • mode
    • fixed: 僅輸出initial_number
    • increment: 以initial_number為基礎,每次加1
    • decrement: 以initial_number為基礎,每次減1
    • randomize: 不考慮initial_number,輸出隨機數

D2 XY Model List

  • 將 Checkpoint/Lora 傳遞給 D2 XY Plot 的節點
  • 當你想獲取大量模型列表,但不想在 D2 Checkpoint List 中一個一個選擇時使用
  • 點擊 get_list 獲取模型列表,然後編輯保留需要的部分
  • 輸出為 x / y_items / LIST / ARRAY(參見 TIPS)

input

  • model_type
    • checkpoints, loras, diffusion_models, samplers, schedulers, upscaler, bbox_segm, controlnet
  • filter
    • 輸入過濾文字
    • 支援正則表達式
    • 當搜尋文字包含 \ 時,需寫成 \\
  • get_list
    • 獲取模型列表按鈕

D2 XY Upload Image

  • 一次性上傳多個圖像文件的節點
  • 可以通過拖放文件將其上傳到臨時文件夾
  • 上傳文件的路徑顯示在文本區域中
  • 設計為通過 D2 XY Plot Easy 連接到 D2 Load Image
  • 輸出為 x / y_items / LIST / ARRAY(參見 TIPS),以及檔案數量 image_count

D2 XY Folder Images

  • 傳遞指定資料夾內檔案路徑到 D2 XY Plot 的節點
  • 名稱雖為 Images,但並非僅限圖片。只要設定 extension,文字、影片等任何檔案皆可處理
  • 將 include_subfolders 設為 true 可同時處理子資料夾內的檔案(也可在 folder 中直接寫入 **)
  • extension 可以 *.png, *.jpg, *.webp 這樣以逗號分隔指定多個副檔名
  • 輸出為 x / y_items / LIST / ARRAY(參見 TIPS),以及檔案數量 image_count

D2 XY Annotation

  • 用於不使用 D2 XY Plot 時或進行特殊 XY Plot 時添加標題

D2 XY List To Plot

已不建議使用。今後請改用 D2 List Converter。


D2 XY String To Plot

  • 將多行文本轉換為可用於 D2 XY Plot / D2 XY Plot Easy 的格式
  • 當需要比較整個提示詞時使用
  • 在 D2 XY Plot Easy 中進行提示詞比較時,將 x/y_type 設置為 STRING,並將 x/y_other 連接到 D2 KSampler 的 positive 輸入
  • x / y_items 會去除每段文字中的換行後輸出。LIST / ARRAY 則保留換行輸出(參見 TIPS)