Skip to main content
Glama

save_scene

Save the current Cinema 4D scene to a specified file path, preserving 3D modeling work for future editing or sharing.

Instructions

Save the current Cinema 4D scene.

Args:
    file_path: Optional path to save the scene to

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo

Implementation Reference

  • The save_scene tool is defined as an async function decorated with @mcp.tool() in server.py, which communicates with Cinema 4D via a connection context.
    @mcp.tool()
    async def save_scene(file_path: Optional[str] = None, ctx: Context = None) -> str:
        """
        Save the current Cinema 4D scene.
    
        Args:
            file_path: Optional path to save the scene to
        """
        async with c4d_connection_context() as connection:
            if not connection.connected:
                return "❌ Not connected to Cinema 4D"
    
            # Prepare command
            command = {"command": "save_scene"}
    
            if file_path:
                command["file_path"] = file_path
    
            # Send command to Cinema 4D
            response = send_to_c4d(connection, command)
            return format_c4d_response(response, "save_scene")

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