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

Method import_model

tripo3d/client.py:899–919  ·  view source on GitHub ↗

Import an external 3D model file (GLB / OBJ / FBX / STL). The imported model can then be used as input for texture_model, rig_model, etc. Args: file: Path to a local 3D model file. The file is auto-uploaded via STS. Returns: The task ID.

(
        self,
        file: str,
    )

Source from the content-addressed store, hash-verified

897 return await self.create_task(task_data)
898
899 async def import_model(
900 self,
901 file: str,
902 ) -> str:
903 """
904 Import an external 3D model file (GLB / OBJ / FBX / STL).
905
906 The imported model can then be used as input for texture_model, rig_model, etc.
907
908 Args:
909 file: Path to a local 3D model file. The file is auto-uploaded via STS.
910
911 Returns:
912 The task ID.
913 """
914 upload_result = await self.upload_file(file)
915 task_data: Dict[str, Any] = {
916 "type": "import_model",
917 "file": upload_result,
918 }
919 return await self.create_task(task_data)
920
921 async def convert_model(
922 self,

Callers

nothing calls this directly

Calls 2

upload_fileMethod · 0.95
create_taskMethod · 0.95

Tested by

no test coverage detected