The HY 3D: UV Unwrapping workflow is designed to streamline the process of UV unwrapping for 3D models, making it easier for artists and developers to prepare models for texturing. This workflow leverages the Hunyuan3D model to efficiently generate an optimized UV layout, which is crucial for applying textures accurately and without distortion. By using a series of specialized nodes, including Load3D, TencentModelTo3DUVNode, and SaveGLB, the workflow ensures that the input model is processed and outputted with a clean and usable UV map.
Technically, the process begins with the Load3D node, which supports popular 3D formats such as FBX, OBJ, and GLB. The model is then passed through the TencentModelTo3DUVNode, where the UV unwrapping is performed using advanced algorithms provided by the Hunyuan3D model. Finally, the SaveGLB node outputs the processed model in GLB format, ready for further texturing or integration into 3D applications. This workflow is particularly useful for models with less than 30,000 faces, ensuring efficient processing and high-quality results.
API
從程式碼使用此工作流
每個 Comfy 工作流都是一個 JSON 圖。下方的 payload 就是此工作流,與 ComfyUI 執行時完全相同 — 你可以從此 URL 取得、放入版本控制,或在 ComfyUI 載入並逐節點執行。
使用 Comfy SDK 以 TypeScript 或 Python 執行。相同程式碼可用於 Comfy Cloud 或你自架的 ComfyUI — 只需更改 base URL。
// Install (beta)
npm i @comfyorg/sdk
// Run "混元3D:UV展開" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_hunyuan3d_model2uv_api.json");
const job = await client.run(wf);
await job.getOutputs("15")[0].toFile("output.png"); // SaveGLBSDK 需使用 API 格式的工作流:請在 ComfyUI 開啟此工作流,並使用 檔案 → 匯出工作流(API)。
常見問題















