Material(MaterialStage)
The Material node (class MaterialStage) is an input node in the ComfyTV package, located under ComfyTV/Input.
Material Stage
Description
The Material node (class MaterialStage) is an input node in the ComfyTV package, located under ComfyTV/Input. It defines a physically based rendering (PBR) material and provides a material-ball preview of the current result. The node includes an interactive material editor in its body: this editor writes the material definition into the material_state JSON string and writes a preview snapshot URL into captured_image.
If an image is connected to the optional image input, the node uses the selected VLM workflow to estimate PBR parameters from that image. This makes it possible to start from a reference image instead of setting every material property manually.
Inputs
workflow
Required COMBO input. Selects the VLM workflow used to estimate PBR parameters when an image is connected. The workflow is used for image-driven material estimation; without a connected image, the material is determined by the editor state.
material_state
Required STRING input, default "{}". Internal PBR material JSON containing properties such as color, metalness, roughness, transmission, and other PBR values. It is driven by the material editor in the node body, so it normally does not need to be edited directly. The default empty object represents an empty starting material state.
captured_image
Required STRING input, default "". Internal /view URL of the material-ball preview snapshot. It is written by the node body and becomes the image output. This value is normally managed by the node UI and does not need to be set manually.
image
Optional COMFYTV_IMAGE input. When connected, this image is used with the selected VLM workflow to estimate PBR parameters for the material. If omitted, the material is defined by the material editor and material_state.
Outputs
COMFYTV_MATERIAL
The PBR material produced by the node, based either on the editor state or on parameters estimated from a connected image. Connect this output to material inputs on other ComfyTV nodes.
COMFYTV_IMAGE
The material-ball preview snapshot generated by the node. It is backed by the internal captured_image /view URL and provides a visual preview of the resulting material. It can be passed to image inputs that accept COMFYTV_IMAGE.
Usage Notes
- Use the material editor in the node body to tune properties such as color, metalness, roughness, and transmission. The preview ball reflects the current material.
- To derive a material from a reference image, connect the image to the
imageinput and choose an appropriate VLM workflow in theworkflowcombo. - After image-driven estimation, inspect the preview and adjust the editor parameters if needed.
- Leave
material_stateandcaptured_imagealone unless you are building automation around the node; these widgets are normally written by the node body and UI.
Comments
Sign in with GitHub to join the discussion.