create_light
Add lighting to Cinema 4D scenes by creating area, dome, or spot lights with custom names to illuminate 3D models and environments.
Instructions
Add a light to the scene.
Args:
light_type: Type of light (area, dome, spot)
name: Optional name for the lightInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| light_type | Yes | ||
| name | No |
Implementation Reference
- src/cinema4d_mcp/server.py:946-965 (handler)The handler function that creates a light in Cinema 4D by sending a command over the connection.
async def create_light( light_type: str, name: Optional[str] = None, ctx: Context = None ) -> str: """ Add a light to the scene. Args: light_type: Type of light (area, dome, spot) name: Optional name for the light """ async with c4d_connection_context() as connection: if not connection.connected: return "❌ Not connected to Cinema 4D" command = {"command": "create_light", "type": light_type} if name: command["object_name"] = name response = send_to_c4d(connection, command)