Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "id": "eb362f37-8255-4037-9f5f-5d841b084a26",
- "revision": 0,
- "last_node_id": 73,
- "last_link_id": 85,
- "nodes": [
- {
- "id": 48,
- "type": "StringReplace",
- "pos": [
- 1728,
- -288
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {},
- "order": 7,
- "mode": 0,
- "inputs": [
- {
- "name": "string",
- "type": "STRING",
- "widget": {
- "name": "string"
- },
- "link": 79
- },
- {
- "name": "replace",
- "type": "STRING",
- "widget": {
- "name": "replace"
- },
- "link": 78
- }
- ],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 62
- ]
- }
- ],
- "properties": {
- "Node name for S&R": "StringReplace",
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- }
- },
- "widgets_values": [
- "",
- "#eyeColor",
- ""
- ],
- "widgets_values_named": {
- "string": "",
- "find": "#eyeColor",
- "replace": ""
- }
- },
- {
- "id": 53,
- "type": "PreviewAny",
- "pos": [
- 2240,
- -288
- ],
- "size": [
- 352,
- 224
- ],
- "flags": {},
- "order": 9,
- "mode": 0,
- "inputs": [
- {
- "name": "source",
- "type": "*",
- "link": 62
- }
- ],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": null
- }
- ],
- "properties": {
- "Node name for S&R": "PreviewAny",
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- }
- },
- "widgets_values": [],
- "widgets_values_named": {}
- },
- {
- "id": 65,
- "type": "7a5ac315-1833-4156-ba44-5582cf7b0458",
- "pos": [
- 704,
- 352
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {},
- "order": 0,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "selected_line",
- "type": "STRING",
- "links": [
- 84
- ]
- }
- ],
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0",
- "previewExposures": []
- },
- "widgets_values": [
- "blonde\nbrunette\nredhead"
- ],
- "widgets_values_named": {
- "text_per_line": "blonde\nbrunette\nredhead"
- }
- },
- {
- "id": 67,
- "type": "PreviewAny",
- "pos": [
- 2240,
- 352
- ],
- "size": [
- 352,
- 224
- ],
- "flags": {},
- "order": 8,
- "mode": 0,
- "inputs": [
- {
- "name": "source",
- "type": "*",
- "link": 85
- }
- ],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": []
- }
- ],
- "properties": {
- "Node name for S&R": "PreviewAny",
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- }
- },
- "widgets_values": [],
- "widgets_values_named": {}
- },
- {
- "id": 68,
- "type": "PrimitiveStringMultiline",
- "pos": [
- 704,
- -864
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {},
- "order": 1,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 76
- ]
- }
- ],
- "title": "Template prompt | Text (Multiline) node",
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- },
- "Node name for S&R": "PrimitiveStringMultiline"
- },
- "widgets_values": [
- "Woman with #hairColor hair and #eyeColor eyes"
- ],
- "widgets_values_named": {
- "value": "Woman with #hairColor hair and #eyeColor eyes"
- }
- },
- {
- "id": 69,
- "type": "StringReplace",
- "pos": [
- 1216,
- -576
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {},
- "order": 5,
- "mode": 0,
- "inputs": [
- {
- "name": "string",
- "type": "STRING",
- "widget": {
- "name": "string"
- },
- "link": 76
- },
- {
- "name": "replace",
- "type": "STRING",
- "widget": {
- "name": "replace"
- },
- "link": 77
- }
- ],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 79
- ]
- }
- ],
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- },
- "Node name for S&R": "StringReplace"
- },
- "widgets_values": [
- "",
- "#hairColor",
- ""
- ],
- "widgets_values_named": {
- "string": "",
- "find": "#hairColor",
- "replace": ""
- }
- },
- {
- "id": 70,
- "type": "CustomCombo",
- "pos": [
- 704,
- -576
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {
- "collapsed": false
- },
- "order": 2,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 77
- ]
- },
- {
- "name": "INDEX",
- "type": "INT",
- "links": []
- }
- ],
- "title": "Hair Color as Select | Custom Combo node",
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- },
- "Node name for S&R": "CustomCombo"
- },
- "widgets_values": [
- "blonde",
- -1,
- "blonde",
- "brunette",
- "redhead",
- ""
- ],
- "widgets_values_named": {
- "choice": "blonde",
- "index": -1,
- "option1": "blonde",
- "option2": "brunette",
- "option3": "redhead",
- "option4": ""
- }
- },
- {
- "id": 71,
- "type": "CustomCombo",
- "pos": [
- 1216,
- -288
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {
- "collapsed": false
- },
- "order": 3,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 78
- ]
- },
- {
- "name": "INDEX",
- "type": "INT",
- "links": []
- }
- ],
- "title": "Eye Color as Select | Custom Combo node",
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- },
- "Node name for S&R": "CustomCombo"
- },
- "widgets_values": [
- "green",
- -1,
- "green",
- "blue",
- "hazel",
- ""
- ],
- "widgets_values_named": {
- "choice": "green",
- "index": -1,
- "option1": "green",
- "option2": "blue",
- "option3": "hazel",
- "option4": ""
- }
- },
- {
- "id": 72,
- "type": "StringReplace",
- "pos": [
- 1216,
- 352
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {},
- "order": 6,
- "mode": 0,
- "inputs": [
- {
- "name": "string",
- "type": "STRING",
- "widget": {
- "name": "string"
- },
- "link": 83
- },
- {
- "name": "replace",
- "type": "STRING",
- "widget": {
- "name": "replace"
- },
- "link": 84
- }
- ],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 85
- ]
- }
- ],
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- },
- "Node name for S&R": "StringReplace"
- },
- "widgets_values": [
- "",
- "#hairColor",
- ""
- ],
- "widgets_values_named": {
- "string": "",
- "find": "#hairColor",
- "replace": ""
- }
- },
- {
- "id": 73,
- "type": "PrimitiveStringMultiline",
- "pos": [
- 704,
- 64
- ],
- "size": [
- 480,
- 224
- ],
- "flags": {},
- "order": 4,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "name": "STRING",
- "type": "STRING",
- "links": [
- 83
- ]
- }
- ],
- "title": "Template prompt | Text (Multiline) node",
- "properties": {
- "ue_properties": {
- "widget_ue_connectable": {},
- "input_ue_unconnectable": {},
- "version": "7.8"
- },
- "Node name for S&R": "PrimitiveStringMultiline"
- },
- "widgets_values": [
- "Woman with #hairColor hair and #eyeColor eyes"
- ],
- "widgets_values_named": {
- "value": "Woman with #hairColor hair and #eyeColor eyes"
- }
- }
- ],
- "links": [
- [
- 62,
- 48,
- 0,
- 53,
- 0,
- "STRING"
- ],
- [
- 76,
- 68,
- 0,
- 69,
- 0,
- "STRING"
- ],
- [
- 77,
- 70,
- 0,
- 69,
- 1,
- "STRING"
- ],
- [
- 78,
- 71,
- 0,
- 48,
- 1,
- "STRING"
- ],
- [
- 79,
- 69,
- 0,
- 48,
- 0,
- "STRING"
- ],
- [
- 83,
- 73,
- 0,
- 72,
- 0,
- "STRING"
- ],
- [
- 84,
- 65,
- 0,
- 72,
- 1,
- "STRING"
- ],
- [
- 85,
- 72,
- 0,
- 67,
- 0,
- "STRING"
- ]
- ],
- "groups": [],
- "definitions": {
- "subgraphs": [
- {
- "id": "7a5ac315-1833-4156-ba44-5582cf7b0458",
- "version": 1,
- "state": {
- "lastGroupId": 5,
- "lastNodeId": 73,
- "lastLinkId": 85,
- "lastRerouteId": 0
- },
- "revision": 0,
- "config": {},
- "name": "Hair Color as Random Line | Select Random Line From Text",
- "description": "Picks one random line from multiline text. The line count is computed automatically and a new random line is chosen on each run.",
- "inputNode": {
- "id": -10,
- "bounding": [
- -1300,
- 8595,
- 128,
- 68
- ]
- },
- "outputNode": {
- "id": -20,
- "bounding": [
- 710,
- 8585,
- 128,
- 68
- ]
- },
- "inputs": [
- {
- "id": "75417d82-a934-4ac9-b667-d8dcd5a3bfb3",
- "name": "text_per_line",
- "type": "STRING",
- "linkIds": [
- 52,
- 55
- ],
- "localized_name": "text_per_line",
- "pos": [
- -1196,
- 8619
- ]
- }
- ],
- "outputs": [
- {
- "id": "e34e8ad1-84d2-4bd2-a460-eb7de6067c10",
- "name": "selected_line",
- "type": "STRING",
- "linkIds": [
- 51
- ],
- "localized_name": "selected_line",
- "pos": [
- 734,
- 8609
- ]
- }
- ],
- "widgets": [],
- "nodes": [
- {
- "id": 40,
- "type": "PrimitiveInt",
- "pos": [
- -1088,
- 8416
- ],
- "size": [
- 288,
- 128
- ],
- "flags": {},
- "order": 0,
- "mode": 0,
- "inputs": [],
- "outputs": [
- {
- "localized_name": "INT",
- "name": "INT",
- "type": "INT",
- "links": [
- 54
- ]
- }
- ],
- "title": "Int (random seed)",
- "properties": {
- "Node name for S&R": "PrimitiveInt",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [
- -517221165265834,
- "randomize"
- ],
- "widgets_values_named": {
- "value": -517221165265834,
- "control_after_generate": "randomize"
- }
- },
- {
- "id": 41,
- "type": "RegexReplace",
- "pos": [
- -1088,
- 8736
- ],
- "size": [
- 416,
- 320
- ],
- "flags": {},
- "order": 4,
- "mode": 0,
- "inputs": [
- {
- "localized_name": "string",
- "name": "string",
- "type": "STRING",
- "widget": {
- "name": "string"
- },
- "link": 55
- }
- ],
- "outputs": [
- {
- "localized_name": "STRING",
- "name": "STRING",
- "type": "STRING",
- "links": [
- 56
- ]
- }
- ],
- "title": "Keep only newlines",
- "properties": {
- "Node name for S&R": "RegexReplace",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [
- "",
- "[^\\n]",
- "",
- false,
- false,
- false,
- 0
- ],
- "widgets_values_named": {
- "string": "",
- "regex_pattern": "[^\\n]",
- "replace": "",
- "case_insensitive": false,
- "multiline": false,
- "dotall": false,
- "count": 0
- }
- },
- {
- "id": 42,
- "type": "StringLength",
- "pos": [
- -672,
- 8736
- ],
- "size": [
- 288,
- 128
- ],
- "flags": {},
- "order": 5,
- "mode": 0,
- "inputs": [
- {
- "localized_name": "string",
- "name": "string",
- "type": "STRING",
- "widget": {
- "name": "string"
- },
- "link": 56
- }
- ],
- "outputs": [
- {
- "localized_name": "length",
- "name": "length",
- "type": "INT",
- "links": [
- 73
- ]
- }
- ],
- "title": "Newline count (= lines - 1)",
- "properties": {
- "Node name for S&R": "StringLength",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [
- ""
- ],
- "widgets_values_named": {
- "string": ""
- }
- },
- {
- "id": 43,
- "type": "ComfyMathExpression",
- "pos": [
- -800,
- 8416
- ],
- "size": [
- 320,
- 224
- ],
- "flags": {},
- "order": 6,
- "mode": 0,
- "inputs": [
- {
- "localized_name": "a",
- "name": "values.a",
- "type": "FLOAT,INT,BOOLEAN",
- "link": 54
- },
- {
- "localized_name": "b",
- "name": "values.b",
- "shape": 7,
- "type": "FLOAT,INT,BOOLEAN",
- "link": 73
- },
- {
- "localized_name": "c",
- "name": "values.c",
- "shape": 7,
- "type": "FLOAT,INT,BOOLEAN",
- "link": null
- }
- ],
- "outputs": [
- {
- "localized_name": "FLOAT",
- "name": "FLOAT",
- "type": "FLOAT",
- "links": []
- },
- {
- "localized_name": "INT",
- "name": "INT",
- "type": "INT",
- "links": [
- 72
- ]
- },
- {
- "localized_name": "BOOL",
- "name": "BOOL",
- "type": "BOOLEAN",
- "links": []
- }
- ],
- "title": "Random line index = seed % line count",
- "properties": {
- "Node name for S&R": "ComfyMathExpression",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [
- "a % (b + 1)"
- ],
- "widgets_values_named": {
- "expression": "a % (b + 1)"
- }
- },
- {
- "id": 36,
- "type": "PreviewAny",
- "pos": [
- -512,
- 8416
- ],
- "size": [
- 256,
- 192
- ],
- "flags": {},
- "order": 1,
- "mode": 0,
- "inputs": [
- {
- "localized_name": "source",
- "name": "source",
- "type": "*",
- "link": 72
- }
- ],
- "outputs": [
- {
- "localized_name": "STRING",
- "name": "STRING",
- "type": "STRING",
- "links": [
- 50
- ]
- }
- ],
- "properties": {
- "Node name for S&R": "PreviewAny",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [],
- "widgets_values_named": {}
- },
- {
- "id": 39,
- "type": "StringReplace",
- "pos": [
- -224,
- 8416
- ],
- "size": [
- 416,
- 288
- ],
- "flags": {},
- "order": 3,
- "mode": 0,
- "inputs": [
- {
- "localized_name": "replace",
- "name": "replace",
- "type": "STRING",
- "widget": {
- "name": "replace"
- },
- "link": 50
- }
- ],
- "outputs": [
- {
- "localized_name": "STRING",
- "name": "STRING",
- "type": "STRING",
- "links": [
- 49
- ]
- }
- ],
- "properties": {
- "Node name for S&R": "StringReplace",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [
- "^(?:[^\\n]*\\n){index}([^\\n]*)(?:\\n|$)",
- "index",
- ""
- ],
- "widgets_values_named": {
- "string": "^(?:[^\\n]*\\n){index}([^\\n]*)(?:\\n|$)",
- "find": "index",
- "replace": ""
- }
- },
- {
- "id": 37,
- "type": "RegexExtract",
- "pos": [
- -224,
- 8736
- ],
- "size": [
- 480,
- 480
- ],
- "flags": {},
- "order": 2,
- "mode": 0,
- "showAdvanced": false,
- "inputs": [
- {
- "localized_name": "string",
- "name": "string",
- "type": "STRING",
- "widget": {
- "name": "string"
- },
- "link": 52
- },
- {
- "localized_name": "regex_pattern",
- "name": "regex_pattern",
- "type": "STRING",
- "widget": {
- "name": "regex_pattern"
- },
- "link": 49
- }
- ],
- "outputs": [
- {
- "localized_name": "STRING",
- "name": "STRING",
- "type": "STRING",
- "links": [
- 51
- ]
- }
- ],
- "properties": {
- "Node name for S&R": "RegexExtract",
- "ue_properties": {
- "widget_ue_connectable": {},
- "version": "7.8",
- "input_ue_unconnectable": {}
- },
- "cnr_id": "comfy-core",
- "ver": "0.19.0"
- },
- "widgets_values": [
- "",
- "",
- "First Group",
- false,
- false,
- false,
- 1
- ],
- "widgets_values_named": {
- "string": "",
- "regex_pattern": "",
- "mode": "First Group",
- "case_insensitive": false,
- "multiline": false,
- "dotall": false,
- "group_index": 1
- }
- }
- ],
- "groups": [],
- "links": [
- {
- "id": 49,
- "origin_id": 39,
- "origin_slot": 0,
- "target_id": 37,
- "target_slot": 1,
- "type": "STRING"
- },
- {
- "id": 51,
- "origin_id": 37,
- "origin_slot": 0,
- "target_id": -20,
- "target_slot": 0,
- "type": "STRING"
- },
- {
- "id": 52,
- "origin_id": -10,
- "origin_slot": 0,
- "target_id": 37,
- "target_slot": 0,
- "type": "STRING"
- },
- {
- "id": 55,
- "origin_id": -10,
- "origin_slot": 0,
- "target_id": 41,
- "target_slot": 0,
- "type": "STRING"
- },
- {
- "id": 56,
- "origin_id": 41,
- "origin_slot": 0,
- "target_id": 42,
- "target_slot": 0,
- "type": "STRING"
- },
- {
- "id": 72,
- "origin_id": 43,
- "origin_slot": 1,
- "target_id": 36,
- "target_slot": 0,
- "type": "INT"
- },
- {
- "id": 50,
- "origin_id": 36,
- "origin_slot": 0,
- "target_id": 39,
- "target_slot": 0,
- "type": "STRING"
- },
- {
- "id": 54,
- "origin_id": 40,
- "origin_slot": 0,
- "target_id": 43,
- "target_slot": 0,
- "type": "INT"
- },
- {
- "id": 73,
- "origin_id": 42,
- "origin_slot": 0,
- "target_id": 43,
- "target_slot": 1,
- "type": "INT"
- }
- ],
- "extra": {
- "ue_links": [],
- "links_added_by_ue": []
- }
- }
- ]
- },
- "config": {},
- "extra": {
- "ue_links": [],
- "links_added_by_ue": [],
- "ds": {
- "scale": 0.4240976183724851,
- "offset": [
- 727.0925922383656,
- 1149.9078349209724
- ]
- },
- "frontendVersion": "1.58.5"
- },
- "version": 0.4
- }
Advertisement
Add Comment
Please, Sign In to add comment