ComfyUI > Nodes > ComfyUI_PHRenderFormerWrapper > RenderFormer From JSON

ComfyUI Node: RenderFormer From JSON

Class Name

RenderFormerFromJSON

Category
PHRenderFormer
Author
paulh4x (Account age: 391days)
Extension
ComfyUI_PHRenderFormerWrapper
Latest Updated
2025-08-08
Github Stars
0.03K

How to Install ComfyUI_PHRenderFormerWrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI_PHRenderFormerWrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_PHRenderFormerWrapper in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

RenderFormer From JSON Description

Facilitates custom 3D scene creation from JSON, includes external `.obj` model support for enhanced customization.

RenderFormer From JSON:

The RenderFormerFromJSON node is designed to facilitate the creation of custom 3D scenes by loading a scene definition from a JSON file. This node is particularly beneficial for AI artists who wish to construct complex scenes without delving into intricate coding. By providing a JSON file, you can define various elements of a scene, such as objects, lighting, and camera settings, in a structured format. Additionally, the node offers the flexibility to incorporate external 3D models in the form of .obj files, allowing for enhanced customization and detail in your scenes. This capability makes it a powerful tool for artists looking to experiment with and visualize different scene configurations efficiently.

RenderFormer From JSON Input Parameters:

scene_json

The scene_json parameter is a multiline string input where you can provide the JSON definition of your scene. This JSON file should contain all the necessary details to construct the scene, such as object positions, lighting, and camera settings. The default value is a template JSON, which can be modified to suit your specific needs. This parameter is crucial as it forms the backbone of the scene you wish to create.

add_default_background

The add_default_background parameter is a boolean option that allows you to decide whether to include a default background in your scene. By default, this is set to False, meaning no background will be added unless specified. Enabling this option can provide a basic backdrop for your scene, which can be useful for quick visualizations or when a specific background is not defined in the JSON.

additional_mesh_file

The additional_mesh_file parameter provides a dropdown list of available .obj files located in the input/3d directory. This allows you to select an additional 3D model to include in your scene. The list includes all .obj files found in the directory, sorted alphabetically, with an option for None if no additional mesh is desired. This parameter enhances the scene by allowing the integration of external 3D models.

additional_mesh_path

The additional_mesh_path parameter is a string input where you can specify the absolute path to an .obj file. This is useful if the desired 3D model is not located in the default input/3d directory. By providing the full path, you can include any .obj file from your system, offering greater flexibility in scene creation.

mesh_root_dir

The mesh_root_dir parameter is a string input that allows you to define an optional root directory for meshes referenced in the JSON. This can be particularly useful if your JSON file includes relative paths to 3D models, as it sets a base directory from which these paths are resolved. This parameter helps in organizing and managing the assets used in your scene.

RenderFormer From JSON Output Parameters:

SCENE

The SCENE output parameter represents the constructed 3D scene based on the provided JSON definition and any additional meshes. This output is crucial as it is the final product of the node's operation, ready for rendering or further manipulation. The SCENE output encapsulates all the elements defined in the JSON, including objects, lighting, and camera settings, providing a comprehensive representation of the intended scene.

RenderFormer From JSON Usage Tips:

  • Ensure your JSON file is well-structured and includes all necessary elements for the scene, such as objects, lighting, and camera settings, to avoid incomplete scene construction.
  • Utilize the additional_mesh_file and additional_mesh_path parameters to enhance your scene with external 3D models, providing more detail and complexity.
  • If your JSON references relative paths for meshes, use the mesh_root_dir parameter to set a base directory, ensuring all assets are correctly located and loaded.

RenderFormer From JSON Common Errors and Solutions:

FileNotFoundError: No such file or directory

  • Explanation: This error occurs when the specified .obj file or JSON file cannot be found at the given path.
  • Solution: Verify that the file paths provided in additional_mesh_path or within the JSON are correct and that the files exist at those locations.

JSONDecodeError: Expecting value

  • Explanation: This error indicates that the JSON file is not properly formatted or contains syntax errors.
  • Solution: Check the JSON file for any syntax errors, such as missing commas or brackets, and ensure it is correctly formatted.

KeyError: 'mesh_root_dir'

  • Explanation: This error may occur if the mesh_root_dir is referenced in the JSON but not defined.
  • Solution: Ensure that the mesh_root_dir parameter is set if your JSON file uses relative paths for meshes, or update the JSON to use absolute paths.

RenderFormer From JSON Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_PHRenderFormerWrapper
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.