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 groupInput Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_names | Yes | ||
| group_name | No |
Implementation Reference
- src/cinema4d_mcp/server.py:1105-1127 (handler)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") - src/cinema4d_mcp/server.py:1104-1104 (registration)Registration of the group_objects tool using the @mcp.tool decorator.
@mcp.tool()