From f6ef7552b8d1ad5b29af0cce60a5507c19a55d8d Mon Sep 17 00:00:00 2001 From: Rocky-PC Date: Sun, 25 Jan 2026 04:11:12 +0800 Subject: [PATCH] File Paths Ensure Execution Node --- README.md | 8 ++++---- __pycache__/nodes.cpython-312.pyc | Bin 7286 -> 7156 bytes nodes.py | 17 ++++------------- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 3088ac9..f28de17 100644 --- a/README.md +++ b/README.md @@ -52,23 +52,23 @@ Closes the file paths loop and collects iteration results. **Inputs:** - `current_index`: Current index from FilePathsForLoop (required, force input) -- `passthrough_1` through `passthrough_5`: Optional outputs from nodes in the loop +- `iteration_data`: Optional output from FilePathsEnsureExecution or any node in the loop **Outputs:** - `total_iterations`: Total number of iterations completed -**Usage:** This is the termination point of your loop. Connect the `current_index` from FilePathsForLoop (or through other nodes) to ensure the loop completes. You can also connect outputs from processing nodes to the passthrough inputs to collect results. +**Usage:** This is the termination point of your loop. Connect the `current_index` from FilePathsForLoop (or through other nodes) to ensure the loop completes. If you need to ensure multiple nodes execute, connect them to FilePathsEnsureExecution first, then connect FilePathsEnsureExecution's output to this node's `iteration_data` input. ### FilePathsEnsureExecution Ensures connected nodes execute during loop iteration by collecting their outputs. **Inputs:** -- `input_1` through `input_10`: Optional inputs (supports any type with wildcard `*`) +- `input_1` through `input_5`: Optional inputs (supports any type with wildcard `*`) **Outputs:** - `passthrough`: The first non-None input value -**Usage:** Connect outputs from any nodes that need to execute within the loop to this node's inputs. Then connect this node's output downstream (e.g., to FilePathsLoopClose) to ensure all connected nodes complete execution. +**Usage:** Connect outputs from any nodes that need to execute within the loop to this node's inputs. Then connect this node's output downstream (e.g., to FilePathsLoopClose) to ensure all connected nodes complete execution. If you need more than 5 inputs, chain multiple FilePathsEnsureExecution nodes together - connect the first node's output to one of the second node's inputs. ## How ComfyUI List-Based Loops Work diff --git a/__pycache__/nodes.cpython-312.pyc b/__pycache__/nodes.cpython-312.pyc index deeff2f1c46706020cca796f0c0d110ad881d000..c412e13a2201bd900c1cdbca1403822934cbdae4 100644 GIT binary patch delta 891 zcmYjPO-vI(6yE95((d-ZP+GT=0fkTnj0ye_1u-N>q!wc1rCM;)9q5LoTXwfWP(x!p z8A;Ta=*5GCXhLG5h7b>4yy!)5#-!=ZlO{&eMwEjWX9^*{-Tn64@6EiK_s#w}xpl(( z(c=*~8cUr;^+WWv_q!7fJ@|UOgHMZ!pt$a!w0prB7c0SYsz%0TD`zHjy)dllCRuz7 z0&t~l@jGp7X_bGI$!q1DFnl%(JeUOSwg>I)w7Zu znZgTt5$6d}@T|_v$jNzpjP_6MF}v%@ELE~OnOZVi)GW225v)%!drY$HmZeV<`fWhX z6^n=IZXa_BQfzw{|HQ7M6c=wu8fRHAXDGz&@Xgx;?*s`lzK#)@N@fRz5?6I_o|dxI z_WxZI9Z_$UcQOl|F2M-xl|dD;Ae*L@GxXwg&PYMUSF#%;G!GenORVCUnU{@ev%=4i z1(UhH=V%I+{c&W%8~-9oF)M`xtIFUCj0M6z*Pg4CRl{Hf4x$8XhA+X7z$0{X{dVxZ zt^Fz;ZhCg=veVj$oioc&d9fWPf)P>EWo2@T{*&h2^?S_@gfjIN({zNv;0C-351{n= zX7~s~&!IIkhbG{DjA1BSJ!2d z`V}LCY?E2JMz&{dtF}1Ej!Li1+VM8mJAVikT#@XSI~g?$Gp1{)wb;^NwRyeT9I7^l ztIZp@!$lyBU%0klsOO}kyE5{;BjCxqcpsNz_Uv%7@@Fvcecn2-7fyTh4mS3ZhrAa|M=h_;WVGa;{qQBd?h`=+DZVBWDESUw7 zz=ggxqH%R+vs@e=GE&W)ewW1Q69gm<-+212S+(&5sp`^5nT(c6xJS6jwg zDU