was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

dictionary

Open liulsg opened this issue 2 years ago • 5 comments

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

liulsg avatar Oct 26 '23 06:10 liulsg

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

WASasquatch avatar Oct 26 '23 15:10 WASasquatch

@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

liulsg avatar Oct 27 '23 06:10 liulsg

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: @.***>

WASasquatch avatar Oct 27 '23 15:10 WASasquatch

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

tht78 avatar Oct 30 '23 14:10 tht78

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

liulsg avatar Oct 30 '23 14:10 liulsg