Relight(RelightStage)
The Relight node (class RelightStage) is a ComfyTV input/stage node for workflows that use the light-ball editor.
Relight Stage
Description
The Relight node (class RelightStage) is a ComfyTV input/stage node for workflows that use the light-ball editor. It packages the editor's current lighting state and the URL of its rendered preview so the graph can consume them as ComfyTV outputs.
The node does not expose conventional image or numeric light controls. Its two inputs are string fields intended to be managed by the ComfyTV light-ball editor. In normal use, the editor fills these fields automatically when you adjust lights and upload the rendered preview.
The node is available under the ComfyTV/Input category.
Inputs
lights_data
- Type:
STRING - Required: Yes
- Default:
"[]"
Internal light-ball editor state as a JSON array of LightInfoEntry objects. The default empty array means no lights are defined. This field is normally populated by the light-ball editor; edit it manually only when scripting, debugging, or constructing the state yourself. If you provide it manually, it should contain valid JSON matching the expected LightInfoEntry[] structure.
light_render_url
- Type:
STRING - Required: Yes
- Default:
""
Internal ComfyUI /view URL for the auto-uploaded light-ball render. This is a reference to the uploaded preview, not a raw filesystem path. The default empty string means no render URL has been supplied. This field is normally populated automatically by the editor after the render is uploaded.
Outputs
COMFYTV_IMAGE
The image output for the stage. It corresponds to the uploaded light-ball render referenced by light_render_url. Connect it to downstream nodes that accept ComfyTV images. If light_render_url is empty, no rendered image is available.
COMFYTV_TEXT
The text output for the stage. It carries the ComfyTV text result derived from the light-ball editor state, corresponding to the serialized lights_data. Use it with nodes that accept ComfyTV text, or to log, store, or pass along the lighting data.
Usage Notes
- Use this node with the ComfyTV light-ball editor. Adjust lights visually in the editor, then let the node receive the updated state and uploaded render URL.
- Treat
lights_dataandlight_render_urlas internal fields. They are exposed as required string inputs, but they are normally written by the ComfyTV frontend rather than edited by hand. - The defaults represent an empty state:
"[]"for no lights and""for no uploaded render. If you manually populate these fields, ensure the data and URL are valid before relying on the outputs. - Connect
COMFYTV_IMAGEto image consumers andCOMFYTV_TEXTto text consumers. The two outputs represent the rendered lighting preview and the associated light data, respectively.
Comments
Sign in with GitHub to join the discussion.