ComfyUI Node
K2 Project Import
Imports a K2Lab / K2 Region Studio project JSON and turns it into normal K2 graph objects: regions, regional LoRAs, emphases, tuning and projector. Accepts the published schema (version 1) with 'regions', 'loras', 'emphases', 'spatial', 'projector'. Region boxes may be given as {x0,y0,x1,y1} or {x,y,width,height}. LoRA entries are matched against the local models/loras inventory by file name; a missing file is reported instead of silently dropped.
K2 Project Import
- regions
- loras
- emphasis
- tuning
- projector
- global_prompt
- negative_prompt
- width
- height
- info
◄project_json{}►
◄width1024►
◄height1024►
◄strict_lora_namestrue►
CategoryFVM Tools/K2
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| project_json | STRING | {} | K2Lab / K2 Region Studio project JSON. |
| width | INT | 102464–16384 | Canvas the stored pixel boxes refer to. |
| height | INT | 102464–16384 | Canvas height the stored boxes refer to. |
| strict_lora_namesopt | BOOLEAN | true | On: a LoRA file that is not installed raises an error. Off: it is skipped and listed in the info output. |
Outputs (10)
| Name | Type | Description |
|---|---|---|
| regions | K2_REGION | — |
| loras | K2_LORA | — |
| emphasis | K2_EMPHASIS | — |
| tuning | K2_TUNING | — |
| projector | K2_PROJECTOR | — |
| global_prompt | STRING | — |
| negative_prompt | STRING | — |
| width | INT | — |
| height | INT | — |
| info | STRING | — |