Skip to main content
Glama

import_generated_asset_hunyuan

Import 3D assets generated by Hunyuan3D into Blender scenes using the provided 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
NameRequiredDescriptionDefault
nameYes
zip_file_urlYes

Implementation Reference

  • The main handler function implementing the 'import_generated_asset_hunyuan' MCP tool. It is registered via @mcp.tool(), defines input parameters (name, zip_file_url), and sends the corresponding command to the Blender addon via the connection.
    @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)}"
  • Documentation in the asset_creation_strategy prompt instructing how to use the tool after polling the Hunyuan3D job status.
            - Use import_generated_asset_hunyuan() to import the generated OBJ model the asset
    if Hunyuan3D mode is "LOCAL_API":

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ahujasid/blender-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server