Skip to main content
Glama

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 light

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
light_typeYes
nameNo

Implementation Reference

  • 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)

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