ComfyUI Node
BD Export Mesh With Colors
Export mesh with vertex colors to GLB/PLY/OBJ. Use after BD_SampleVoxelgridColors. Wire context_id from BD_SaveContext for template-based naming.
BD Export Mesh With Colors
- mesh
- diffuse
- normal
- file_path
- status
◄filenamemesh_colored►
◄formatglb►
◄name_prefix►
◄auto_incrementtrue►
◄context_id►
◄suffix►
◄context_custom_vars►
Category🧠BrainDead/Mesh
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| mesh | TRIMESH | — | |
| filename | STRING | mesh_colored | — |
| format | COMBO | glb | 3 options: glb, ply, obj |
| name_prefixopt | STRING | Prepended to filename. Supports subdirs (e.g., 'Project/Name') | |
| auto_incrementopt | BOOLEAN | true | Auto-increment filename to avoid overwriting |
| context_idopt | STRING | BD_SaveContext id for template-based naming + foldering. Empty + exactly one registered context = auto-pick. When it resolves, the template (with %suffix%) drives the path; filename/name_prefix pass through as %filename%/%name_prefix%. | |
| suffixopt | STRING | Per-save suffix → %suffix% in the template (e.g. '_body', '_combined'). Wirable — e.g. connect BD CubePart Get Part's `name` output. Only used when context_id resolves. | |
| context_custom_varsopt | STRING | Extra key=value template vars (one per line), layered on top of the context (e.g. subfolder=parts). Only used when context_id resolves. | |
| diffuseopt | IMAGE | Baked diffuse/base-color atlas (e.g. from BD_OVoxelBake) to embed as the glb baseColorTexture, so the exported file is textured (not a white placeholder). GLB only; needs the mesh to carry UVs. | |
| normalopt | IMAGE | Baked tangent-space normal atlas to embed as the glb normalTexture. GLB only. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| file_path | STRING | — |
| status | STRING | — |