Smart Model or Lora to String
Turn a WanVideoWrapper model or LoRA into a string you can log
- model
- lora
- output_string
Smart Model or Lora to String does one thing: it turns a WanVideoWrapper model and/or LoRA object into a human-readable multi-line string. Give it a WANVIDEOMODEL, a WANVIDLORA, or both, and it produces something like:
MODEL: Wan2.2-TI2V-5B
LORA: style_x : 0.80
LORA: char_y : 1.00
That string is the reproducible-receipt pattern this pack keeps coming back to. Wire the output into SmartSaveText and every Wan render logs exactly which base model and which LoRAs (with strengths) went into it. It's the Wan-side analog of what SmartHVLoraSelect does for HunyuanVideo, and it plugs into the same logging chain.
How it works
It reads the object internals rather than a filename. For the model input, it digs into the WanVideoWrapper pipeline structure to pull out model_name (stripping the .safetensors extension) - which is why it expects a WANVIDEOMODEL and not a plain ComfyUI MODEL. For the LoRA input, it walks the WANVIDLORA list and prints each entry's name and strength as LORA: name : strength. Both inputs are optional, so you can feed just one, and the output is a single joined string (output_string).
The inputs and outputs that matter
model- a WANVIDEOMODEL (optional).lora- a WANVIDLORA (optional).
Output: output_string (STRING).
Both inputs being optional is the useful bit: run it once on just the model, or feed both and get the whole load summary on one block. Note there's no mode toggle - it just prints what you give it, and skips whatever you left empty.
The catch: it's built for WanVideoWrapper
The category is literally WanVideoWrapper, and the input types are that pack's custom types. If you don't have Kijai's ComfyUI-WanVideoWrapper installed, there's nothing that produces a WANVIDEOMODEL for you to plug in - the node will sit there with no compatible inputs. In practice this node makes sense inside a WanVideoWrapper workflow, where both types are already in play. If you're running native ComfyUI Wan nodes instead, the equivalent receipt comes from this pack's SmartLoadLoRA / SmartModelLoader, which output strings directly.
Installing it
Part of SmartHelperNodes; install the pack once:
cd ComfyUI/custom_nodes
git clone https://github.com/slvslvslv/ComfyUI-SmartHelperNodes
Restart ComfyUI, or ComfyUI Manager → "SmartHelperNodes". No pip dependencies. If you want it to do anything, install ComfyUI-WanVideoWrapper as well - that's where its input types come from.
Common issues
The main one is scope confusion: it's not a general model-inspector (that's SmartModelInfo, for plain MODEL objects). It only speaks the WanVideoWrapper types, and a model name it can't find inside the pipeline structure comes out as MODEL: unknown rather than an error. And as with the pack's other receipt strings, don't wire output_string into a model slot - it's a log line, not a model. Feed it to SmartSaveText and let it keep records.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| modelopt | WANVIDEOMODEL | — | |
| loraopt | WANVIDLORA | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output_string | STRING | — |