add image output to TencentModelTo3DUV node

This commit is contained in:
bigcat88 2026-02-13 17:55:33 +02:00
parent dd4513da17
commit 6d0f45ce0b

View File

@ -16,6 +16,7 @@ from comfy_api_nodes.apis.hunyuan3d import (
from comfy_api_nodes.util import ( from comfy_api_nodes.util import (
ApiEndpoint, ApiEndpoint,
download_url_to_file_3d, download_url_to_file_3d,
download_url_to_image_tensor,
downscale_image_tensor_by_max_side, downscale_image_tensor_by_max_side,
poll_op, poll_op,
sync_op, sync_op,
@ -331,6 +332,7 @@ class TencentModelTo3DUVNode(IO.ComfyNode):
outputs=[ outputs=[
IO.File3DOBJ.Output(display_name="OBJ"), IO.File3DOBJ.Output(display_name="OBJ"),
IO.File3DFBX.Output(display_name="FBX"), IO.File3DFBX.Output(display_name="FBX"),
IO.Image.Output(),
], ],
hidden=[ hidden=[
IO.Hidden.auth_token_comfy_org, IO.Hidden.auth_token_comfy_org,
@ -384,6 +386,7 @@ class TencentModelTo3DUVNode(IO.ComfyNode):
return IO.NodeOutput( return IO.NodeOutput(
await download_url_to_file_3d(get_file_from_response(result.ResultFile3Ds, "obj").Url, "obj"), await download_url_to_file_3d(get_file_from_response(result.ResultFile3Ds, "obj").Url, "obj"),
await download_url_to_file_3d(get_file_from_response(result.ResultFile3Ds, "fbx").Url, "fbx"), await download_url_to_file_3d(get_file_from_response(result.ResultFile3Ds, "fbx").Url, "fbx"),
await download_url_to_image_tensor(get_file_from_response(result.ResultFile3Ds, "image").Url),
) )