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 toInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No |
Implementation Reference
- src/cinema4d_mcp/server.py:700-721 (handler)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")