3D Scene(Scene3DStage)
The Scene3DStage node is a Scene3D input stage in the ComfyTV/Input category.
Scene3 D Stage
Description
The Scene3DStage node is a Scene3D input stage in the ComfyTV/Input category. It carries the interactive 3D editor state for a scene, including characters, primitives, lights, camera, and output settings, and exposes media captured or recorded from that scene as ComfyTV image and video outputs.
The node is designed around its editor UI. Most of its inputs are marked Internal and are populated by the node body as the scene is edited, captured, or recorded. They remain visible as required inputs so the graph can store and pass the current scene state and the latest captured media.
Inputs
All inputs are required.
scene_state
| Property | Value |
|---|---|
| Type | STRING |
| Default | "{}" |
| Internal | Yes |
JSON string containing the Scene3D editor state. The state covers the scene contents and settings, including characters, primitives, lights, camera, and output configuration. The default "{}" represents an empty scene state.
channel
| Property | Value |
|---|---|
| Type | COMBO |
| Default | "color" |
| Options | color, depth, normal, openpose, id |
| Internal | Yes |
Render channel used by the node body when capturing or recording. Use color for the normal rendered image, or select one of the auxiliary passes for depth, normal, OpenPose, or ID output. The channel is driven by the node body during capture and record operations.
width
| Property | Value |
|---|---|
| Type | INT |
| Default | 1024 |
| Minimum | 64 |
| Maximum | 4096 |
| Step | 8 |
| Internal | Yes |
Capture and record width in pixels. This value also fixes the aspect ratio of the editor viewport, so it should be set consistently with height before composing or capturing the scene.
height
| Property | Value |
|---|---|
| Type | INT |
| Default | 1024 |
| Minimum | 64 |
| Maximum | 4096 |
| Step | 8 |
| Internal | Yes |
Capture and record height in pixels. This value also fixes the aspect ratio of the editor viewport, so it should be set consistently with width before composing or capturing the scene.
captured_image
| Property | Value |
|---|---|
| Type | STRING |
| Default | "" |
| Internal | Yes |
The /view URL of the last Capture upload. This is populated by the node body when a capture is performed and points to the most recently uploaded single image.
captured_images
| Property | Value |
|---|---|
| Type | STRING |
| Default | "" |
| Internal | Yes |
JSON string containing the images batch from the last Capture operation. The batch contains one entry per scene camera, so multi-camera scenes produce multiple captured images in this value.
captured_video
| Property | Value |
|---|---|
| Type | STRING |
| Default | "" |
| Internal | Yes |
The /view URL of the last Record upload. This is populated by the node body when a recording is performed and points to the most recently uploaded video.
Outputs
The node provides three ComfyTV media outputs, in this order:
| Output | Type | Meaning |
|---|---|---|
| 1 | COMFYTV_IMAGE | Image output associated with the latest single Capture upload. |
| 2 | COMFYTV_VIDEO | Video output associated with the latest Record upload. |
| 3 | COMFYTV_IMAGES | Images batch output associated with the latest multi-camera Capture. |
Usage Notes
The Scene3DStage node acts as the bridge between the interactive Scene3D editor and the ComfyUI graph. Configure the scene in the node body, then use the Capture and Record controls to generate media. The captured URL and batch values are stored in the internal string inputs so that the corresponding COMFYTV_IMAGE, COMFYTV_VIDEO, and COMFYTV_IMAGES outputs can supply the latest captured media to downstream nodes.
Because scene_state, channel, captured_image, captured_images, and captured_video are internal fields, they are normally managed by the node UI rather than typed manually. The width and height values control both the resolution of captured or recorded media and the aspect ratio of the editor viewport.
When a scene contains multiple cameras, the last Capture operation stores one image per scene camera in captured_images, and the COMFYTV_IMAGES output exposes that batch. The channel selection determines which render pass is used for capture and record operations.
Comments
Sign in with GitHub to join the discussion.