Skip to main content
Glama

load_scene

Load a Cinema 4D scene file to access and work with 3D models, animations, and project data for AI-assisted editing and manipulation.

Instructions

Load a Cinema 4D scene file.

Args:
    file_path: Path to the scene file to load

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYes

Implementation Reference

  • The implementation of the load_scene tool, which sends a command to the Cinema 4D connection and returns the formatted response.
    async def load_scene(file_path: str, ctx: Context) -> str:
        """
        Load a Cinema 4D scene file.
    
        Args:
            file_path: Path to the scene file to load
        """
        async with c4d_connection_context() as connection:
            if not connection.connected:
                return "❌ Not connected to Cinema 4D"
    
            # Send command to Cinema 4D
            response = send_to_c4d(
                connection, {"command": "load_scene", "file_path": file_path}
            )
            return format_c4d_response(response, "load_scene")
  • The registration of the load_scene tool using the @mcp.tool() decorator.
    @mcp.tool()

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/ttiimmaacc/cinema4d-mcp'

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