Skip to main content
Glama

snapshot_scene

Capture the current scene state in Cinema 4D for backup or version control. Save snapshots with optional asset inclusion to preserve project progress.

Instructions

Create a snapshot of the current scene state.

Args:
    file_path: Optional path to save the snapshot
    include_assets: Whether to include external assets in the snapshot

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo
include_assetsNo

Implementation Reference

  • The handler function 'snapshot_scene' that orchestrates communication with Cinema 4D to trigger a scene snapshot.
    async def snapshot_scene(
        file_path: Optional[str] = None, include_assets: bool = False, ctx: Context = None
    ) -> str:
        """
        Create a snapshot of the current scene state.
    
        Args:
            file_path: Optional path to save the snapshot
            include_assets: Whether to include external assets in the snapshot
        """
        async with c4d_connection_context() as connection:
            if not connection.connected:
                return "❌ Not connected to Cinema 4D"
    
            # Prepare command
            command = {"command": "snapshot_scene"}
    
            if file_path:
                command["file_path"] = file_path
    
            command["include_assets"] = include_assets
    
            # Send command to Cinema 4D
            response = send_to_c4d(connection, command)
    
            return format_c4d_response(response, "snapshot_scene")
  • Registration of the snapshot_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