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,
)
| 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, |
nothing calls this directly
no test coverage detected