Skip to main content
Glama

group_objects

Organize multiple 3D objects by grouping them under a null object in Cinema 4D. Specify object names and optional group name for better scene management.

Instructions

Group multiple objects under a null object.

Args:
    object_names: List of object names to group
    group_name: Optional name for the group

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_namesYes
group_nameNo

Implementation Reference

  • The handler implementation of the "group_objects" tool in Cinema 4D MCP server.
    async def group_objects(
        object_names: List[str], group_name: Optional[str] = None, ctx: Context = None
    ) -> str:
        """
        Group multiple objects under a null object.
    
        Args:
            object_names: List of object names to group
            group_name: Optional name for the group
        """
        async with c4d_connection_context() as connection:
            if not connection.connected:
                return "❌ Not connected to Cinema 4D"
    
            # Prepare command
            command = {"command": "group_objects", "object_names": object_names}
    
            if group_name:
                command["group_name"] = group_name
    
            # Send command to Cinema 4D
            response = send_to_c4d(connection, command)
            return format_c4d_response(response, "group_objects")
  • Registration of the group_objects tool using the @mcp.tool decorator.
    @mcp.tool()

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