WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.15k stars 170 forks source link

dictionary #254

Open liulsg opened 11 months ago

liulsg commented 11 months ago

I would like to ask what is the standard form of dictionary. Can you give me an example?

WASasquatch commented 11 months ago

Originally it was added as a method of loading wildcard files. You set the name of the wildcard to use, and it parsed the wildcard file into a list under the dict key you chose

liulsg commented 11 months ago

@WASasquatch
I created a text called "3.txt" that said: { 'filename': 'a,', 'b,', 'c,' } I don't know why "text find replace by dictionary" doesn't work。 image

WASasquatch commented 11 months ago

It replaces "filename" with one of the values in the dict from what I remember.

On Thu, Oct 26, 2023, 11:14 PM liulsg @.***> wrote:

@WASasquatch https://github.com/WASasquatch I created a text called "3.txt" that said: { 'filename': 'a,', 'b,', 'c,' } I don't know why "text find replace by dictionary" doesn't work。 [image: image] https://user-images.githubusercontent.com/97494068/278551119-cd7d1345-7179-4c01-b6ae-c137c4b09f3d.png

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/254#issuecomment-1782355888, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZJYBPUTJP6YEM2SCZDYBNGLHAVCNFSM6AAAAAA6QQO3GCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBSGM2TKOBYHA . You are receiving this because you were mentioned.Message ID: @.***>

tht78 commented 11 months ago

From what I gather:

WAS_Suite_Dictionary

liulsg commented 11 months ago

From what I gather:

  • The dictionary key is specified by the 'dictionary_name' argument. [filename] by default.
  • The value associated with this key is a list containing all the lines of the text file. 1 value per line, no delimiters needed.

WAS_Suite_Dictionary

thanks,Your answer made me understand. thanks again