MrForExample / ComfyUI-3D-Pack

An extensive node suite that enables ComfyUI to process 3D inputs (Mesh & UV Texture, etc) using cutting edge algorithms (3DGS, NeRF, etc.)
MIT License
2.32k stars 233 forks source link

AttributeError: 'list' object has no attribute 'write' #90

Closed DorotaLuna closed 7 months ago

DorotaLuna commented 8 months ago

Remove the image background, link the image to TripoSR, then clipck the queue prompt. py311, win11

Here is the workflow image

And here is the log

got prompt
[Comfy3D] [Save_3D_Mesh] Saving model to C:\AI\Blender_ComfyUI\ComfyUI\output\Mesh_2024-03-11-25-37-846416.obj
!!! Exception during processing !!!
Traceback (most recent call last):
  File "C:\AI\Blender_ComfyUI\ComfyUI\execution.py", line 151, in recursive_execute
    output_data, output_ui = get_output_data(obj, input_data_all)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\AI\Blender_ComfyUI\ComfyUI\execution.py", line 81, in get_output_data
    return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\AI\Blender_ComfyUI\ComfyUI\execution.py", line 74, in map_node_over_list
    results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\AI\Blender_ComfyUI\ComfyUI\custom_nodes\ComfyUI-3D-Pack\nodes.py", line 253, in save_mesh
    mesh.write(save_path)
    ^^^^^^^^^^
AttributeError: 'list' object has no attribute 'write'

Prompt executed in 0.02 seconds
MrForExample commented 7 months ago

Hi friend, you are using flowty's addon, which is not compatible with Comfy3D, you can using TripoSR node provided by Comfy3D instead, please check example workflows for how to use it 👍