Skip to main content
Glama

modify_object

Adjust position, rotation, scale, and other properties of existing 3D objects in Cinema 4D scenes to refine your models and compositions.

Instructions

Modify properties of an existing object.

Args:
    object_name: Name of the object to modify
    properties: Dictionary of properties to modify (position, rotation, scale, etc.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_nameYes
propertiesYes

Implementation Reference

  • The handler function 'modify_object' that sends the modify request to Cinema 4D.
    async def modify_object(
        object_name: str, properties: Dict[str, Any], ctx: Context
    ) -> str:
        """
        Modify properties of an existing object.
    
        Args:
            object_name: Name of the object to modify
            properties: Dictionary of properties to modify (position, rotation, scale, etc.)
        """
        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": "modify_object",
                    "object_name": object_name,
                    "properties": properties,
                },
            )
    
            return format_c4d_response(response, "modify_object")
  • The MCP tool registration for 'modify_object'.
    @mcp.tool()
    async def modify_object(

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