OC Generator / Load Settings Preset
Load a saved preset instead
- settings
- settings_json
The Settings node in this pack is where you dial in a character profile - but you don't want to re-dial it every time you open a workflow. OC Generator / Load Settings Preset is the "save file" side of that equation: it reads a settings_json file out of the pack's user_presets/ directory and turns it back into a live OC_GENERATOR_SETTINGS object, ready to feed a generator.
It's the perfect companion to Save Settings JSON. You design a profile once - say, a soft violet-haired look you like - save it, and then any workflow can pull it in with this node. The pack even ships one to start you off: example_soft_violet.json, which the dropdown is pre-pointed at.
How it works
The dropdown lists every *.json file in user_presets/ (the pack's directory inside custom_nodes), sorted by name. Pick one, run, and you get back the settings object and the re-serialized settings_json string. The load path runs the same normalization as Save Settings JSON, so anything stored by a save node - or exported by the companion web app - comes back shaped the way the generator expects.
One quirk worth knowing: the node only lists files that exist at graph-load time. Add a new preset while ComfyUI is running and you'll need to restart (or reload the node) for it to appear in the dropdown. And if user_presets/ is empty, the node drops in a (no presets found) placeholder and raises a clean error if you run it, rather than crashing your whole workflow.
The inputs and outputs that matter
Just one input - preset_name, the enum of saved presets. That's the whole config surface.
Two outputs:
settings- theOC_GENERATOR_SETTINGSobject. Wire it intoGenerate Character,Generate Character List, orShow Settings. This is the output you'll use 99% of the time.settings_json- the same settings as a normalized JSON string, if you need the serialized form for a text node or to re-save it under another name.
Install and gotchas
Identical to the rest of the pack - zero dependencies, no model downloads, no GPU footprint:
cd ComfyUI/custom_nodes
git clone https://github.com/nade-eaf4fc/comfyui-original-character-generator.git
or search comfyui-original-character-generator in ComfyUI Manager, install, restart.
Two honest gotchas. The big one: presets live inside the pack's own folder, so deleting custom_nodes/comfyui-original-character-generator (say, to do a clean reinstall) wipes your user_presets/. Copy that folder out before you nuke the pack. Second, the README's standing warning applies here hardest - recent updates have broken existing workflows, and since this node is often the first one in a chain, a version bump that renames a settings field will fail at load, not downstream. If a saved workflow suddenly complains, check for a pack update before hunting for a wiring mistake.
If you want your own presets to be durable and shareable, the web app path is actually the nicest: design there, export settings_json, and drop it into user_presets/. Then this node becomes the only thing standing between you and a character profile you built once, used forever.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| preset_name | COMBO | example_soft_violet | 1 options: example_soft_violet |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| settings | OC_GENERATOR_SETTINGS | — |
| settings_json | STRING | — |