Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions comfy_api_nodes/apis/tripo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ class TripoModelVersion(str, Enum):
v3_1_20260211 = "v3.1-20260211"
v3_0_20250812 = "v3.0-20250812"
v2_5_20250123 = "v2.5-20250123"
v2_0_20240919 = "v2.0-20240919"
v1_4_20240625 = "v1.4-20240625"


Expand Down Expand Up @@ -39,7 +38,6 @@ class TripoTaskType(str, Enum):
IMAGE_TO_MODEL = "image_to_model"
MULTIVIEW_TO_MODEL = "multiview_to_model"
TEXTURE_MODEL = "texture_model"
REFINE_MODEL = "refine_model"
ANIMATE_PRERIGCHECK = "animate_prerigcheck"
ANIMATE_RIG = "animate_rig"
ANIMATE_RETARGET = "animate_retarget"
Expand Down Expand Up @@ -230,11 +228,6 @@ class TripoTextureModelRequest(BaseModel):
)


class TripoRefineModelRequest(BaseModel):
type: TripoTaskType = Field(TripoTaskType.REFINE_MODEL, description="Type of task")
draft_model_task_id: str = Field(..., description="The task ID of the draft model")


class TripoAnimateRigRequest(BaseModel):
type: TripoTaskType = Field(TripoTaskType.ANIMATE_RIG, description="Type of task")
original_model_task_id: str = Field(..., description="The task ID of the original model")
Expand Down
42 changes: 0 additions & 42 deletions comfy_api_nodes/nodes_tripo.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
TripoP1ImageToModelRequest,
TripoP1MultiviewToModelRequest,
TripoP1TextToModelRequest,
TripoRefineModelRequest,
TripoStyle,
TripoTaskResponse,
TripoTaskStatus,
Expand Down Expand Up @@ -600,46 +599,6 @@ async def execute(
return await poll_until_finished(cls, response, average_duration=80)


class TripoRefineNode(IO.ComfyNode):

@classmethod
def define_schema(cls):
return IO.Schema(
node_id="TripoRefineNode",
display_name="Tripo: Refine Draft model",
category="partner/3d/Tripo",
description="Refine a draft model created by v1.4 Tripo models only.",
inputs=[
IO.Custom("MODEL_TASK_ID").Input("model_task_id", tooltip="Must be a v1.4 Tripo model"),
],
outputs=[
IO.String.Output(display_name="model_file"), # for backward compatibility only
IO.Custom("MODEL_TASK_ID").Output(display_name="model task_id"),
IO.File3DGLB.Output(display_name="GLB"),
],
hidden=[
IO.Hidden.auth_token_comfy_org,
IO.Hidden.api_key_comfy_org,
IO.Hidden.unique_id,
],
is_api_node=True,
is_output_node=True,
price_badge=IO.PriceBadge(
expr="""{"type":"usd","usd":0.3, "format": {"approximate": true}}""",
),
)

@classmethod
async def execute(cls, model_task_id) -> IO.NodeOutput:
response = await sync_op(
cls,
endpoint=ApiEndpoint(path="/proxy/tripo/v2/openapi/task", method="POST"),
response_model=TripoTaskResponse,
data=TripoRefineModelRequest(draft_model_task_id=model_task_id),
)
return await poll_until_finished(cls, response, average_duration=240)


class TripoRigNode(IO.ComfyNode):

@classmethod
Expand Down Expand Up @@ -1390,7 +1349,6 @@ async def get_node_list(self) -> list[type[IO.ComfyNode]]:
TripoP1MultiviewToModelNode,
TripoImportModelNode,
TripoTextureNode,
TripoRefineNode,
TripoRigNode,
TripoRetargetNode,
TripoConversionNode,
Expand Down
Loading