VRGDG_UpdateLatestCombinedJsonPrompts
Batch-edit every prompt in your music video without touching a JSON file
- updated_json_text
- file_path
- updated_count
- ignored
At the heart of VRGameDevGirl's music video workflow there's a JSON file holding every scene's prompt - number, text, and which image each one anchors to. Editing that file by hand is a misery: one misplaced comma and the whole batch dies. VRGDG_UpdateLatestCombinedJsonPrompts is the node that edits it for you, so you can tweak scene 12's prompt from inside the graph and regenerate just that chunk.
It's the control panel for the pack's batch generation. The workflow turns your lyrics and concepts into a list of scene prompts, writes them into a "combined JSON" file, and then this node is how you come back and adjust that list - fix a character's outfit, swap which reference image a scene uses, or flip the whole batch between a text-to-image pass and an image-to-video pass.
How it works
The essential inputs:
combined_json_file- a dropdown that lists the combined JSON files it can find. Select the one you're editing.prompt_count(0 to 120) - how many prompt slots are active. Set this to your scene count and the node works through them.batch_type-Text2ImageorImage2Video. This is the big toggle: the same prompt list can drive a still-image pass or a video pass, and this node rewrites the JSON for whichever one you're running.remake_mode(default false) - flip it on to force the prompts to be regenerated rather than reused.folder_path(optional) - point at a specific folder if you're not using the dropdown's default location.
Then there are up to 120 groups of three fields each - prompt_number_N, prompt_text_N, prompt_image_index_N - one group per scene. The text is the actual prompt, and the image index says which generated still (or reference image) that scene is anchored to. The node writes your edits back into the JSON.
It returns four outputs: updated_json_text (the whole file as a string, handy for wiring downstream), file_path (where it was written), updated_count (how many prompts actually changed), and ignored (a boolean - when the node decides nothing needs to change, e.g. remake mode is off and the file is already current).
Installing it
Ships in the VRGameDevGirl Video Enhancement Nodes pack. ComfyUI Manager → search vrgamedev → install, restart ComfyUI, or:
cd ComfyUI/custom_nodes
git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl
No models to download. If the pack's requirements.txt (kornia, librosa, imageio) wasn't installed by Manager, pip install -r requirements.txt against your ComfyUI Python.
Common issues
combined_json_file shows <no files found>. That's the node's own placeholder default - it means no combined JSON exists in the expected location yet. Run the workflow once to generate one, or point folder_path at where your file actually lives.
The ignored output is true and nothing updated. The node is refusing to touch a file it thinks is already current. If you want changes written, flip remake_mode to true.
You set prompt_count and the extra slots do nothing. Only slots 1..prompt_count are live; the rest are ignored by design. If you need scene 200, raise the count toward the max of 120.
It's a lot of surface area for one node - 120 numbered slot groups is intimidating on first open. Ignore the wall of fields; you'll use maybe six slots and prompt_count. Once it clicks, it's the difference between editing one JSON by hand and adjusting your whole video from the graph.
Inputs (365)
| Name | Type | Default | Description |
|---|---|---|---|
| remake_mode | BOOLEAN | false | — |
| batch_type | COMBO | 2 options: Text2Image, Image2Video | |
| combined_json_file | COMBO | 1 options: <no files found> | |
| prompt_count | INT | 00–120 | — |
| folder_pathopt | STRING | — | |
| prompt_number_1opt | INT | 11–999999 | — |
| prompt_text_1opt | STRING | — | |
| prompt_image_index_1opt | STRING | — | |
| prompt_number_2opt | INT | 21–999999 | — |
| prompt_text_2opt | STRING | — | |
| prompt_image_index_2opt | STRING | — | |
| prompt_number_3opt | INT | 31–999999 | — |
| prompt_text_3opt | STRING | — | |
| prompt_image_index_3opt | STRING | — | |
| prompt_number_4opt | INT | 41–999999 | — |
| prompt_text_4opt | STRING | — | |
| prompt_image_index_4opt | STRING | — | |
| prompt_number_5opt | INT | 51–999999 | — |
| prompt_text_5opt | STRING | — | |
| prompt_image_index_5opt | STRING | — | |
| prompt_number_6opt | INT | 61–999999 | — |
| prompt_text_6opt | STRING | — | |
| prompt_image_index_6opt | STRING | — | |
| prompt_number_7opt | INT | 71–999999 | — |
| prompt_text_7opt | STRING | — | |
| prompt_image_index_7opt | STRING | — | |
| prompt_number_8opt | INT | 81–999999 | — |
| prompt_text_8opt | STRING | — | |
| prompt_image_index_8opt | STRING | — | |
| prompt_number_9opt | INT | 91–999999 | — |
| prompt_text_9opt | STRING | — | |
| prompt_image_index_9opt | STRING | — | |
| prompt_number_10opt | INT | 101–999999 | — |
| prompt_text_10opt | STRING | — | |
| prompt_image_index_10opt | STRING | — | |
| prompt_number_11opt | INT | 111–999999 | — |
| prompt_text_11opt | STRING | — | |
| prompt_image_index_11opt | STRING | — | |
| prompt_number_12opt | INT | 121–999999 | — |
| prompt_text_12opt | STRING | — | |
| prompt_image_index_12opt | STRING | — | |
| prompt_number_13opt | INT | 131–999999 | — |
| prompt_text_13opt | STRING | — | |
| prompt_image_index_13opt | STRING | — | |
| prompt_number_14opt | INT | 141–999999 | — |
| prompt_text_14opt | STRING | — | |
| prompt_image_index_14opt | STRING | — | |
| prompt_number_15opt | INT | 151–999999 | — |
| prompt_text_15opt | STRING | — | |
| prompt_image_index_15opt | STRING | — | |
| prompt_number_16opt | INT | 161–999999 | — |
| prompt_text_16opt | STRING | — | |
| prompt_image_index_16opt | STRING | — | |
| prompt_number_17opt | INT | 171–999999 | — |
| prompt_text_17opt | STRING | — | |
| prompt_image_index_17opt | STRING | — | |
| prompt_number_18opt | INT | 181–999999 | — |
| prompt_text_18opt | STRING | — | |
| prompt_image_index_18opt | STRING | — | |
| prompt_number_19opt | INT | 191–999999 | — |
| prompt_text_19opt | STRING | — | |
| prompt_image_index_19opt | STRING | — | |
| prompt_number_20opt | INT | 201–999999 | — |
| prompt_text_20opt | STRING | — | |
| prompt_image_index_20opt | STRING | — | |
| prompt_number_21opt | INT | 211–999999 | — |
| prompt_text_21opt | STRING | — | |
| prompt_image_index_21opt | STRING | — | |
| prompt_number_22opt | INT | 221–999999 | — |
| prompt_text_22opt | STRING | — | |
| prompt_image_index_22opt | STRING | — | |
| prompt_number_23opt | INT | 231–999999 | — |
| prompt_text_23opt | STRING | — | |
| prompt_image_index_23opt | STRING | — | |
| prompt_number_24opt | INT | 241–999999 | — |
| prompt_text_24opt | STRING | — | |
| prompt_image_index_24opt | STRING | — | |
| prompt_number_25opt | INT | 251–999999 | — |
| prompt_text_25opt | STRING | — | |
| prompt_image_index_25opt | STRING | — | |
| prompt_number_26opt | INT | 261–999999 | — |
| prompt_text_26opt | STRING | — | |
| prompt_image_index_26opt | STRING | — | |
| prompt_number_27opt | INT | 271–999999 | — |
| prompt_text_27opt | STRING | — | |
| prompt_image_index_27opt | STRING | — | |
| prompt_number_28opt | INT | 281–999999 | — |
| prompt_text_28opt | STRING | — | |
| prompt_image_index_28opt | STRING | — | |
| prompt_number_29opt | INT | 291–999999 | — |
| prompt_text_29opt | STRING | — | |
| prompt_image_index_29opt | STRING | — | |
| prompt_number_30opt | INT | 301–999999 | — |
| prompt_text_30opt | STRING | — | |
| prompt_image_index_30opt | STRING | — | |
| prompt_number_31opt | INT | 311–999999 | — |
| prompt_text_31opt | STRING | — | |
| prompt_image_index_31opt | STRING | — | |
| prompt_number_32opt | INT | 321–999999 | — |
| prompt_text_32opt | STRING | — | |
| prompt_image_index_32opt | STRING | — | |
| prompt_number_33opt | INT | 331–999999 | — |
| prompt_text_33opt | STRING | — | |
| prompt_image_index_33opt | STRING | — | |
| prompt_number_34opt | INT | 341–999999 | — |
| prompt_text_34opt | STRING | — | |
| prompt_image_index_34opt | STRING | — | |
| prompt_number_35opt | INT | 351–999999 | — |
| prompt_text_35opt | STRING | — | |
| prompt_image_index_35opt | STRING | — | |
| prompt_number_36opt | INT | 361–999999 | — |
| prompt_text_36opt | STRING | — | |
| prompt_image_index_36opt | STRING | — | |
| prompt_number_37opt | INT | 371–999999 | — |
| prompt_text_37opt | STRING | — | |
| prompt_image_index_37opt | STRING | — | |
| prompt_number_38opt | INT | 381–999999 | — |
| prompt_text_38opt | STRING | — | |
| prompt_image_index_38opt | STRING | — | |
| prompt_number_39opt | INT | 391–999999 | — |
| prompt_text_39opt | STRING | — | |
| prompt_image_index_39opt | STRING | — | |
| prompt_number_40opt | INT | 401–999999 | — |
| prompt_text_40opt | STRING | — | |
| prompt_image_index_40opt | STRING | — | |
| prompt_number_41opt | INT | 411–999999 | — |
| prompt_text_41opt | STRING | — | |
| prompt_image_index_41opt | STRING | — | |
| prompt_number_42opt | INT | 421–999999 | — |
| prompt_text_42opt | STRING | — | |
| prompt_image_index_42opt | STRING | — | |
| prompt_number_43opt | INT | 431–999999 | — |
| prompt_text_43opt | STRING | — | |
| prompt_image_index_43opt | STRING | — | |
| prompt_number_44opt | INT | 441–999999 | — |
| prompt_text_44opt | STRING | — | |
| prompt_image_index_44opt | STRING | — | |
| prompt_number_45opt | INT | 451–999999 | — |
| prompt_text_45opt | STRING | — | |
| prompt_image_index_45opt | STRING | — | |
| prompt_number_46opt | INT | 461–999999 | — |
| prompt_text_46opt | STRING | — | |
| prompt_image_index_46opt | STRING | — | |
| prompt_number_47opt | INT | 471–999999 | — |
| prompt_text_47opt | STRING | — | |
| prompt_image_index_47opt | STRING | — | |
| prompt_number_48opt | INT | 481–999999 | — |
| prompt_text_48opt | STRING | — | |
| prompt_image_index_48opt | STRING | — | |
| prompt_number_49opt | INT | 491–999999 | — |
| prompt_text_49opt | STRING | — | |
| prompt_image_index_49opt | STRING | — | |
| prompt_number_50opt | INT | 501–999999 | — |
| prompt_text_50opt | STRING | — | |
| prompt_image_index_50opt | STRING | — | |
| prompt_number_51opt | INT | 511–999999 | — |
| prompt_text_51opt | STRING | — | |
| prompt_image_index_51opt | STRING | — | |
| prompt_number_52opt | INT | 521–999999 | — |
| prompt_text_52opt | STRING | — | |
| prompt_image_index_52opt | STRING | — | |
| prompt_number_53opt | INT | 531–999999 | — |
| prompt_text_53opt | STRING | — | |
| prompt_image_index_53opt | STRING | — | |
| prompt_number_54opt | INT | 541–999999 | — |
| prompt_text_54opt | STRING | — | |
| prompt_image_index_54opt | STRING | — | |
| prompt_number_55opt | INT | 551–999999 | — |
| prompt_text_55opt | STRING | — | |
| prompt_image_index_55opt | STRING | — | |
| prompt_number_56opt | INT | 561–999999 | — |
| prompt_text_56opt | STRING | — | |
| prompt_image_index_56opt | STRING | — | |
| prompt_number_57opt | INT | 571–999999 | — |
| prompt_text_57opt | STRING | — | |
| prompt_image_index_57opt | STRING | — | |
| prompt_number_58opt | INT | 581–999999 | — |
| prompt_text_58opt | STRING | — | |
| prompt_image_index_58opt | STRING | — | |
| prompt_number_59opt | INT | 591–999999 | — |
| prompt_text_59opt | STRING | — | |
| prompt_image_index_59opt | STRING | — | |
| prompt_number_60opt | INT | 601–999999 | — |
| prompt_text_60opt | STRING | — | |
| prompt_image_index_60opt | STRING | — | |
| prompt_number_61opt | INT | 611–999999 | — |
| prompt_text_61opt | STRING | — | |
| prompt_image_index_61opt | STRING | — | |
| prompt_number_62opt | INT | 621–999999 | — |
| prompt_text_62opt | STRING | — | |
| prompt_image_index_62opt | STRING | — | |
| prompt_number_63opt | INT | 631–999999 | — |
| prompt_text_63opt | STRING | — | |
| prompt_image_index_63opt | STRING | — | |
| prompt_number_64opt | INT | 641–999999 | — |
| prompt_text_64opt | STRING | — | |
| prompt_image_index_64opt | STRING | — | |
| prompt_number_65opt | INT | 651–999999 | — |
| prompt_text_65opt | STRING | — | |
| prompt_image_index_65opt | STRING | — | |
| prompt_number_66opt | INT | 661–999999 | — |
| prompt_text_66opt | STRING | — | |
| prompt_image_index_66opt | STRING | — | |
| prompt_number_67opt | INT | 671–999999 | — |
| prompt_text_67opt | STRING | — | |
| prompt_image_index_67opt | STRING | — | |
| prompt_number_68opt | INT | 681–999999 | — |
| prompt_text_68opt | STRING | — | |
| prompt_image_index_68opt | STRING | — | |
| prompt_number_69opt | INT | 691–999999 | — |
| prompt_text_69opt | STRING | — | |
| prompt_image_index_69opt | STRING | — | |
| prompt_number_70opt | INT | 701–999999 | — |
| prompt_text_70opt | STRING | — | |
| prompt_image_index_70opt | STRING | — | |
| prompt_number_71opt | INT | 711–999999 | — |
| prompt_text_71opt | STRING | — | |
| prompt_image_index_71opt | STRING | — | |
| prompt_number_72opt | INT | 721–999999 | — |
| prompt_text_72opt | STRING | — | |
| prompt_image_index_72opt | STRING | — | |
| prompt_number_73opt | INT | 731–999999 | — |
| prompt_text_73opt | STRING | — | |
| prompt_image_index_73opt | STRING | — | |
| prompt_number_74opt | INT | 741–999999 | — |
| prompt_text_74opt | STRING | — | |
| prompt_image_index_74opt | STRING | — | |
| prompt_number_75opt | INT | 751–999999 | — |
| prompt_text_75opt | STRING | — | |
| prompt_image_index_75opt | STRING | — | |
| prompt_number_76opt | INT | 761–999999 | — |
| prompt_text_76opt | STRING | — | |
| prompt_image_index_76opt | STRING | — | |
| prompt_number_77opt | INT | 771–999999 | — |
| prompt_text_77opt | STRING | — | |
| prompt_image_index_77opt | STRING | — | |
| prompt_number_78opt | INT | 781–999999 | — |
| prompt_text_78opt | STRING | — | |
| prompt_image_index_78opt | STRING | — | |
| prompt_number_79opt | INT | 791–999999 | — |
| prompt_text_79opt | STRING | — | |
| prompt_image_index_79opt | STRING | — | |
| prompt_number_80opt | INT | 801–999999 | — |
| prompt_text_80opt | STRING | — | |
| prompt_image_index_80opt | STRING | — | |
| prompt_number_81opt | INT | 811–999999 | — |
| prompt_text_81opt | STRING | — | |
| prompt_image_index_81opt | STRING | — | |
| prompt_number_82opt | INT | 821–999999 | — |
| prompt_text_82opt | STRING | — | |
| prompt_image_index_82opt | STRING | — | |
| prompt_number_83opt | INT | 831–999999 | — |
| prompt_text_83opt | STRING | — | |
| prompt_image_index_83opt | STRING | — | |
| prompt_number_84opt | INT | 841–999999 | — |
| prompt_text_84opt | STRING | — | |
| prompt_image_index_84opt | STRING | — | |
| prompt_number_85opt | INT | 851–999999 | — |
| prompt_text_85opt | STRING | — | |
| prompt_image_index_85opt | STRING | — | |
| prompt_number_86opt | INT | 861–999999 | — |
| prompt_text_86opt | STRING | — | |
| prompt_image_index_86opt | STRING | — | |
| prompt_number_87opt | INT | 871–999999 | — |
| prompt_text_87opt | STRING | — | |
| prompt_image_index_87opt | STRING | — | |
| prompt_number_88opt | INT | 881–999999 | — |
| prompt_text_88opt | STRING | — | |
| prompt_image_index_88opt | STRING | — | |
| prompt_number_89opt | INT | 891–999999 | — |
| prompt_text_89opt | STRING | — | |
| prompt_image_index_89opt | STRING | — | |
| prompt_number_90opt | INT | 901–999999 | — |
| prompt_text_90opt | STRING | — | |
| prompt_image_index_90opt | STRING | — | |
| prompt_number_91opt | INT | 911–999999 | — |
| prompt_text_91opt | STRING | — | |
| prompt_image_index_91opt | STRING | — | |
| prompt_number_92opt | INT | 921–999999 | — |
| prompt_text_92opt | STRING | — | |
| prompt_image_index_92opt | STRING | — | |
| prompt_number_93opt | INT | 931–999999 | — |
| prompt_text_93opt | STRING | — | |
| prompt_image_index_93opt | STRING | — | |
| prompt_number_94opt | INT | 941–999999 | — |
| prompt_text_94opt | STRING | — | |
| prompt_image_index_94opt | STRING | — | |
| prompt_number_95opt | INT | 951–999999 | — |
| prompt_text_95opt | STRING | — | |
| prompt_image_index_95opt | STRING | — | |
| prompt_number_96opt | INT | 961–999999 | — |
| prompt_text_96opt | STRING | — | |
| prompt_image_index_96opt | STRING | — | |
| prompt_number_97opt | INT | 971–999999 | — |
| prompt_text_97opt | STRING | — | |
| prompt_image_index_97opt | STRING | — | |
| prompt_number_98opt | INT | 981–999999 | — |
| prompt_text_98opt | STRING | — | |
| prompt_image_index_98opt | STRING | — | |
| prompt_number_99opt | INT | 991–999999 | — |
| prompt_text_99opt | STRING | — | |
| prompt_image_index_99opt | STRING | — | |
| prompt_number_100opt | INT | 1001–999999 | — |
| prompt_text_100opt | STRING | — | |
| prompt_image_index_100opt | STRING | — | |
| prompt_number_101opt | INT | 1011–999999 | — |
| prompt_text_101opt | STRING | — | |
| prompt_image_index_101opt | STRING | — | |
| prompt_number_102opt | INT | 1021–999999 | — |
| prompt_text_102opt | STRING | — | |
| prompt_image_index_102opt | STRING | — | |
| prompt_number_103opt | INT | 1031–999999 | — |
| prompt_text_103opt | STRING | — | |
| prompt_image_index_103opt | STRING | — | |
| prompt_number_104opt | INT | 1041–999999 | — |
| prompt_text_104opt | STRING | — | |
| prompt_image_index_104opt | STRING | — | |
| prompt_number_105opt | INT | 1051–999999 | — |
| prompt_text_105opt | STRING | — | |
| prompt_image_index_105opt | STRING | — | |
| prompt_number_106opt | INT | 1061–999999 | — |
| prompt_text_106opt | STRING | — | |
| prompt_image_index_106opt | STRING | — | |
| prompt_number_107opt | INT | 1071–999999 | — |
| prompt_text_107opt | STRING | — | |
| prompt_image_index_107opt | STRING | — | |
| prompt_number_108opt | INT | 1081–999999 | — |
| prompt_text_108opt | STRING | — | |
| prompt_image_index_108opt | STRING | — | |
| prompt_number_109opt | INT | 1091–999999 | — |
| prompt_text_109opt | STRING | — | |
| prompt_image_index_109opt | STRING | — | |
| prompt_number_110opt | INT | 1101–999999 | — |
| prompt_text_110opt | STRING | — | |
| prompt_image_index_110opt | STRING | — | |
| prompt_number_111opt | INT | 1111–999999 | — |
| prompt_text_111opt | STRING | — | |
| prompt_image_index_111opt | STRING | — | |
| prompt_number_112opt | INT | 1121–999999 | — |
| prompt_text_112opt | STRING | — | |
| prompt_image_index_112opt | STRING | — | |
| prompt_number_113opt | INT | 1131–999999 | — |
| prompt_text_113opt | STRING | — | |
| prompt_image_index_113opt | STRING | — | |
| prompt_number_114opt | INT | 1141–999999 | — |
| prompt_text_114opt | STRING | — | |
| prompt_image_index_114opt | STRING | — | |
| prompt_number_115opt | INT | 1151–999999 | — |
| prompt_text_115opt | STRING | — | |
| prompt_image_index_115opt | STRING | — | |
| prompt_number_116opt | INT | 1161–999999 | — |
| prompt_text_116opt | STRING | — | |
| prompt_image_index_116opt | STRING | — | |
| prompt_number_117opt | INT | 1171–999999 | — |
| prompt_text_117opt | STRING | — | |
| prompt_image_index_117opt | STRING | — | |
| prompt_number_118opt | INT | 1181–999999 | — |
| prompt_text_118opt | STRING | — | |
| prompt_image_index_118opt | STRING | — | |
| prompt_number_119opt | INT | 1191–999999 | — |
| prompt_text_119opt | STRING | — | |
| prompt_image_index_119opt | STRING | — | |
| prompt_number_120opt | INT | 1201–999999 | — |
| prompt_text_120opt | STRING | — | |
| prompt_image_index_120opt | STRING | — |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| updated_json_text | STRING | — |
| file_path | STRING | — |
| updated_count | INT | — |
| ignored | BOOLEAN | — |