Nodes/ComfyUI-BrainDead/BD Export Mesh With Colors
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.

By BizaNator·Created 7 months ago·Updated 16 days ago· 14
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)

NameTypeDefaultDescription
meshTRIMESH
filenameSTRINGmesh_colored
formatCOMBOglb3 options: glb, ply, obj
name_prefixoptSTRINGPrepended to filename. Supports subdirs (e.g., 'Project/Name')
auto_incrementoptBOOLEANtrueAuto-increment filename to avoid overwriting
context_idoptSTRINGBD_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%.
suffixoptSTRINGPer-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_varsoptSTRINGExtra key=value template vars (one per line), layered on top of the context (e.g. subfolder=parts). Only used when context_id resolves.
diffuseoptIMAGEBaked 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.
normaloptIMAGEBaked tangent-space normal atlas to embed as the glb normalTexture. GLB only.

Outputs (2)

NameTypeDescription
file_pathSTRING
statusSTRING