MCPcopy Create free account
hub / github.com/VAST-AI-Research/tripo-python-sdk / edit_multiview_image

Method edit_multiview_image

tripo3d/client.py:875–897  ·  view source on GitHub ↗

Edit specific views of a multiview image set produced by ``generate_multiview_image``. Args: original_task_id: Task ID from a completed ``generate_multiview_image`` task. prompts: Edit instructions per view, e.g. ``[{"view": "front", "pr

(
        self,
        original_task_id: str,
        prompts: List[Dict[str, str]],
    )

Source from the content-addressed store, hash-verified

873 return await self.create_task(task_data)
874
875 async def edit_multiview_image(
876 self,
877 original_task_id: str,
878 prompts: List[Dict[str, str]],
879 ) -> str:
880 """
881 Edit specific views of a multiview image set produced by ``generate_multiview_image``.
882
883 Args:
884 original_task_id: Task ID from a completed ``generate_multiview_image`` task.
885 prompts: Edit instructions per view, e.g.
886 ``[{"view": "front", "prompt": "change shirt to red"}]``.
887 Valid views: front, left, back, right.
888
889 Returns:
890 The task ID.
891 """
892 task_data: Dict[str, Any] = {
893 "type": "edit_multiview_image",
894 "original_task_id": original_task_id,
895 "prompts": prompts,
896 }
897 return await self.create_task(task_data)
898
899 async def import_model(
900 self,

Callers

nothing calls this directly

Calls 1

create_taskMethod · 0.95

Tested by

no test coverage detected