ComfyUI > Nodes > ComfyUI libigl > Save Meshes to Folder

ComfyUI Node: Save Meshes to Folder

Class Name

GeomPackSaveMeshBatch

Category
geompack/io
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI libigl
Latest Updated
2025-12-22
Github Stars
0.06K

How to Install ComfyUI libigl

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

Save Meshes to Folder Description

Efficiently saves multiple 3D meshes to a folder, ensuring data integrity and providing feedback.

Save Meshes to Folder:

The GeomPackSaveMeshBatch node is designed to efficiently save multiple 3D mesh files to a specified folder, streamlining the process of batch exporting meshes. This node is particularly beneficial for users who need to handle large volumes of mesh data, as it automates the saving process and provides feedback on the success or failure of each operation. By checking the integrity of each mesh before saving, it ensures that only valid meshes are processed, thus preventing errors related to empty or malformed data. The node also offers detailed reporting on the number of successfully saved meshes and any errors encountered, making it easier for users to manage and troubleshoot their mesh data. Overall, GeomPackSaveMeshBatch enhances productivity by simplifying the task of exporting multiple meshes, ensuring data integrity, and providing clear feedback on the process.

Save Meshes to Folder Input Parameters:

trimesh

This parameter represents the collection of 3D mesh objects that you wish to save. Each mesh in the collection is checked for validity, ensuring it contains vertices and faces before attempting to save. The quality and structure of these meshes directly impact the success of the saving process, as empty or malformed meshes will be skipped with an error message.

folder_name

This parameter specifies the directory where the mesh files will be saved. It is crucial to ensure that the folder path is valid and accessible, as any issues with the directory can prevent the meshes from being saved successfully. The folder should have the necessary write permissions to allow the node to store the files.

base_name

The base name is used as a prefix for the saved mesh files. Each file will be named using this base name followed by an index or identifier, ensuring that all files have a consistent naming convention. This helps in organizing and identifying the files easily once they are saved.

format

This parameter determines the file format in which the meshes will be saved. Common formats include .obj, .stl, and .ply, among others. The chosen format should be compatible with the software or tools you plan to use for further processing or visualization of the meshes.

names

An optional parameter that allows you to specify custom names for each mesh file. If provided, these names will override the default naming convention based on the base name. This is useful for maintaining specific naming schemes or when the meshes need to be easily identifiable by name.

Save Meshes to Folder Output Parameters:

output_folder

This output parameter returns the path to the folder where the meshes have been saved. It confirms the location of the saved files, allowing you to easily access and verify the exported meshes.

saved_count

This parameter indicates the number of meshes that were successfully saved. It provides a quick overview of the operation's success, helping you assess whether all intended meshes were exported or if any issues need to be addressed.

Save Meshes to Folder Usage Tips:

  • Ensure that the folder specified in folder_name exists and has the necessary write permissions to avoid errors during the saving process.
  • Use the format parameter to select a file format that is compatible with your subsequent processing or visualization tools, ensuring seamless integration into your workflow.
  • Regularly check the saved_count output to verify that all intended meshes have been saved, and review any error messages for troubleshooting.

Save Meshes to Folder Common Errors and Solutions:

Mesh {i + 1}: Empty mesh (vertices: {vertex_count}, faces: {face_count})

  • Explanation: This error occurs when a mesh in the batch has no vertices or faces, indicating it is empty or malformed.
  • Solution: Verify the integrity of your mesh data before attempting to save. Ensure that each mesh contains valid geometry with vertices and faces.

Failed to save any meshes. Errors: {'; '.join(errors[:3])}

  • Explanation: This error indicates that none of the meshes in the batch were successfully saved, possibly due to invalid data or directory issues.
  • Solution: Check the error messages for specific issues with the meshes or the output directory. Ensure that the directory path is correct and accessible, and that the meshes are properly formatted and non-empty.

Save Meshes to Folder Related Nodes

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