Nodes/ComfyUI-LLaMA-Mesh/Visualize Mesh
ComfyUI Node

Visualize Mesh

“Visualize” is doing a lot of work here — it just saves your OBJ to disk

By Yuan-ManX·Created 2 years ago·Updated 2 years ago· 5
Visualize Mesh
    • STRING
    mesh_text

    The node that gets your mesh out of a string and onto disk

    I'll tell you straight: despite the name, Visualize Mesh renders nothing. It takes the OBJ that Chat LLaMa Mesh produces as mesh_text, writes it to a file called temp_mesh.obj, and hands you back that file's path as a string. That's the entire trick. If "visualize" made you picture a rotating 3D preview inside ComfyUI, lower your expectations to "saves the file so you can open it in something that does visualize."

    Honestly, that's still useful. The pack's main node answers your prompts in text with a mesh embedded in the reply - a format you can't double-click, import, or send to a slicer. This node is the "get it out of ComfyUI" step: one wire from mesh_text in, one path out, and suddenly the OBJ is a real file on disk you can drag into Blender, open in a viewer, or feed to the pack's Apply Gradient Color node for a colored GLB.

    How it works

    There's no mechanism worth mythologizing. The node takes the mesh_text string, opens temp_mesh.obj in the ComfyUI working directory, writes the whole thing, and returns the path. It assumes the input is OBJ format - which is what LLaMA-Mesh emits, so the assumption holds in the pipeline it's built for. If you feed it something that isn't a mesh (plain chat text, or a malformed OBJ the model fumbled), it'll cheerfully save that too, and the garbage will be your garbage when you open the file.

    The one input and output

    • mesh_text - the OBJ as a multiline string. Comes straight from the mesh_text or response output of Chat LLaMa Mesh.
    • Output - a single STRING: the absolute path to the saved .obj file.

    No knobs, no options, no RETURN_TYPES beyond that one path. This is as barebones as a node gets.

    Installing

    It ships in the same pack as the rest of the LLaMA-Mesh family:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Yuan-ManX/ComfyUI-LLaMA-Mesh.git
    cd ComfyUI-LLaMA-Mesh
    pip install -r requirements.txt
    

    Or find LLaMA-Mesh in ComfyUI Manager. This specific node has no interesting dependencies - it's pure Python file I/O.

    Where it falls over

    The filename is hardcoded to temp_mesh.obj, so every run overwrites the last one. If you queue several generations and only check the file afterward, you'll see whatever ran last, not all of them - save the path output (or copy the file) per run if that matters. There's also no clean-up: temp_mesh.obj sits in your ComfyUI folder until you delete it. And because it returns a path rather than an in-graph object, nothing previews in the UI - a pleasant surprise if you were told otherwise, and the whole reason this article started with a reality check. It's a two-function utility with one job, and for that job it's perfectly adequate.

    CategoryLLaMA-Mesh

    Inputs (1)

    NameTypeDefaultDescription
    mesh_textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING