Skip to main content
This node loads a 3D model file from your ComfyUI input directory and provides the model data along with camera and viewport information. It supports common 3D file formats and allows you to specify the output image dimensions for rendering.

Inputs

ParameterDescriptionData TypeRequiredRange
model_fileThe 3D model file to load. Select “none” to skip loading a model.STRINGYes"none"
List of available 3D files in the input/3d directory
viewport_stateThe current viewport state containing camera and model information from the 3D viewer.LOAD3DYes-
widthThe width of the output image in pixels (default: 1024)INTYesMin: 1
Max: 4096
Step: 1
heightThe height of the output image in pixels (default: 1024)INTYesMin: 1
Max: 4096
Step: 1
Notes on Parameters:
  • The model_file parameter only shows files with the following extensions: .gltf, .glb, .obj, .fbx, .stl
  • Files must be placed in the input/3d directory of your ComfyUI installation
  • If model_file is set to “none”, no 3D model data will be loaded (the output model_3d will be empty)

Outputs

Output NameDescriptionData Type
model_3dThe loaded 3D model data, or empty if no model file was selectedFILE3DANY
model_3d_infoInformation about the loaded 3D model from the viewport stateLOAD3DMODELINFO
camera_infoCamera information from the viewport stateLOAD3DCAMERA
widthThe specified output image widthINT
heightThe specified output image heightINT
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): fdacea8abf627621150e1196743e36f61534333837c33cc9a7416a6d11700c4d