UltraShape Save Mesh:
The UltraShapeSaveMesh node is designed to facilitate the saving of 3D mesh data, specifically in the TRIMESH format, to a file within a designated output directory. This node is particularly useful for AI artists and developers who work with 3D models and need a reliable method to export their mesh creations into various file formats for further use or sharing. By providing a straightforward interface to specify the output directory, filename prefix, and desired file format, this node streamlines the process of exporting 3D meshes, ensuring that your creative work is preserved in a format that suits your needs. The node's primary goal is to offer flexibility and ease of use, allowing you to focus on your creative process without worrying about the technical intricacies of file handling.
UltraShape Save Mesh Input Parameters:
mesh
The mesh parameter expects a TRIMESH object, which represents the 3D model you wish to save. This parameter is crucial as it contains the geometric data that will be exported to a file. The TRIMESH format is widely used for representing 3D models, making it a versatile choice for various applications.
output_dir
The output_dir parameter specifies the directory where the mesh file will be saved. By default, it is set to "ultrashape_output". This parameter allows you to organize your exported files by directing them to a specific folder, which can be particularly useful for managing multiple projects or versions.
filename_prefix
The filename_prefix parameter allows you to define a prefix for the saved file's name. The default value is "mesh". This prefix is combined with a timestamp and a unique identifier to create a distinctive filename, helping you easily identify and differentiate between different mesh files.
file_format
The file_format parameter determines the format in which the mesh will be saved. Available options include "glb", "obj", "ply", and "stl", with "glb" being the default. Each format has its own advantages, such as compactness or compatibility with specific software, allowing you to choose the one that best fits your requirements.
UltraShape Save Mesh Output Parameters:
file_path
The file_path output parameter provides the relative path to the saved mesh file. This path is relative to the COMFY_OUTPUT_DIR, making it easy to locate and access the exported file within your project's directory structure. The file_path is essential for verifying that the mesh has been successfully saved and for subsequent operations that may require the file's location.
UltraShape Save Mesh Usage Tips:
- Ensure that the
output_diris correctly set to avoid saving files in unintended locations. This can help maintain an organized file structure. - Choose the
file_formatbased on your intended use of the mesh. For example, use "glb" for web applications due to its compact size, or "obj" for compatibility with most 3D modeling software.
UltraShape Save Mesh Common Errors and Solutions:
Mesh not found: <mesh_path>
- Explanation: This error occurs when the specified mesh path does not exist or is incorrect.
- Solution: Verify that the mesh path is correct and that the file exists at the specified location.
Permission denied: <output_dir>
- Explanation: This error indicates that the program does not have the necessary permissions to write to the specified output directory.
- Solution: Ensure that you have write permissions for the output directory or choose a different directory where you have the necessary permissions.
Invalid file format: <file_format>
- Explanation: This error occurs when an unsupported file format is specified.
- Solution: Check that the file format is one of the supported options: "glb", "obj", "ply", or "stl".
