ComfyUI > Nodes > ComfyUI-Hunyuan3d-2-1 > Hunyuan 3D 2.1 Export Mesh

ComfyUI Node: Hunyuan 3D 2.1 Export Mesh

Class Name

Hy3D21ExportMesh

Category
Hunyuan3D21Wrapper
Author
visualbruno (Account age: 5579days)
Extension
ComfyUI-Hunyuan3d-2-1
Latest Updated
2025-08-11
Github Stars
0.23K

How to Install ComfyUI-Hunyuan3d-2-1

Install this extension via the ComfyUI Manager by searching for ComfyUI-Hunyuan3d-2-1
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Hunyuan3d-2-1 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

Hunyuan 3D 2.1 Export Mesh Description

Facilitates exporting 3D mesh data to various formats, streamlining workflow for AI artists.

Hunyuan 3D 2.1 Export Mesh:

The Hy3D21ExportMesh node is designed to facilitate the exportation of 3D mesh data into various file formats, making it an essential tool for AI artists working with 3D models. This node allows you to take a 3D mesh, typically represented as a trimesh, and save it to a file with a specified format and filename prefix. The primary benefit of this node is its flexibility in supporting multiple file formats, such as glb, obj, ply, stl, 3mf, and dae, which are widely used in 3D modeling and printing. By providing a straightforward method to export meshes, this node streamlines the workflow for artists who need to share, print, or further process their 3D creations. The node's functionality is encapsulated in a user-friendly interface, making it accessible even to those with limited technical expertise.

Hunyuan 3D 2.1 Export Mesh Input Parameters:

trimesh

The trimesh parameter represents the 3D mesh data that you wish to export. It is the core input for this node, as it contains the geometric and topological information of the 3D model. This parameter is crucial because the quality and structure of the trimesh directly affect the exported file's accuracy and appearance. There are no specific minimum or maximum values for this parameter, as it depends on the complexity and detail of the 3D model you are working with.

filename_prefix

The filename_prefix parameter allows you to specify a prefix for the exported file's name. This is useful for organizing and identifying files, especially when exporting multiple versions or variations of a mesh. The default value is "3D/Hy3D", but you can customize it to suit your project or naming conventions. This parameter does not have minimum or maximum values, as it is a string input.

file_format

The file_format parameter determines the format in which the 3D mesh will be exported. You can choose from several options, including glb, obj, ply, stl, 3mf, and dae. Each format has its own advantages and is suited for different applications, such as 3D printing, game development, or virtual reality. Selecting the appropriate format is crucial for ensuring compatibility with your intended use case. There are no minimum or maximum values, but you must select one of the available options.

save_file

The save_file parameter is a boolean that indicates whether the exported file should be saved to disk. By default, this parameter is set to True, meaning the file will be saved. If set to False, the node will still process the mesh and generate a temporary file, but it will not be permanently saved. This option is useful for testing or when you only need to preview the export without creating a permanent file.

Hunyuan 3D 2.1 Export Mesh Output Parameters:

glb_path

The glb_path output parameter provides the relative path to the exported file. This path is essential for locating and accessing the exported mesh file after the process is complete. It allows you to easily find the file within your project's directory structure, facilitating further use or distribution. The output is a string representing the file path, and its accuracy depends on the input parameters and the node's execution.

Hunyuan 3D 2.1 Export Mesh Usage Tips:

  • To ensure compatibility with your target application, carefully choose the file_format that best suits your needs, such as glb for web applications or stl for 3D printing.
  • Use a descriptive filename_prefix to help organize your files and make it easier to identify different versions or iterations of your 3D models.
  • If you are experimenting with different export settings, consider setting save_file to False to avoid cluttering your directory with unnecessary files.

Hunyuan 3D 2.1 Export Mesh Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs when the specified directory for saving the file does not exist.
  • Solution: Ensure that the directory specified in the filename_prefix exists or modify the prefix to point to an existing directory.

InvalidFileFormatError

  • Explanation: This error is raised when an unsupported file format is selected.
  • Solution: Double-check the file_format parameter to ensure it is one of the supported formats: glb, obj, ply, stl, 3mf, or dae.

ExportFailedError

  • Explanation: This error indicates that the export process failed due to an issue with the trimesh data.
  • Solution: Verify that the trimesh input is valid and correctly structured. Consider preprocessing the mesh to fix any potential issues before exporting.

Hunyuan 3D 2.1 Export Mesh Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Hunyuan3d-2-1
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.