import_generated_asset_hunyuan
Import 3D assets generated by Hunyuan3D into Blender scenes using a zip file URL and object name for AI-assisted modeling workflows.
Instructions
Import the asset generated by Hunyuan3D after the generation task is completed.
Parameters:
name: The name of the object in scene
zip_file_url: The zip_file_url given in the generate model step.
Return if the asset has been imported successfully.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| zip_file_url | Yes |
Implementation Reference
- src/blender_mcp/server.py:1060-1086 (handler)The tool `import_generated_asset_hunyuan` is implemented as an MCP tool handler in `src/blender_mcp/server.py`. It uses `@mcp.tool()` for registration and calls the blender server command `import_generated_asset_hunyuan` via `blender.send_command`.
@mcp.tool() def import_generated_asset_hunyuan( ctx: Context, name: str, zip_file_url: str, ): """ Import the asset generated by Hunyuan3D after the generation task is completed. Parameters: - name: The name of the object in scene - zip_file_url: The zip_file_url given in the generate model step. Return if the asset has been imported successfully. """ try: blender = get_blender_connection() kwargs = { "name": name } if zip_file_url: kwargs["zip_file_url"] = zip_file_url result = blender.send_command("import_generated_asset_hunyuan", kwargs) return result except Exception as e: logger.error(f"Error generating Hunyuan3D task: {str(e)}") return f"Error generating Hunyuan3D task: {str(e)}"