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 loadInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes |
Implementation Reference
- src/cinema4d_mcp/server.py:724-740 (handler)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") - src/cinema4d_mcp/server.py:723-723 (registration)The registration of the load_scene tool using the @mcp.tool() decorator.
@mcp.tool()