Skip to main content
Glama

set_keyframe

Set keyframes for object properties in Cinema 4D to animate 3D scenes by specifying object name, property, value, and frame number.

Instructions

Set a keyframe for an object property.

Args:
    object_name: Name of the object
    property_name: Name of the property to keyframe (e.g., 'position.x')
    value: Value to set at the keyframe
    frame: Frame number to set the keyframe at

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_nameYes
property_nameYes
valueYes
frameYes

Implementation Reference

  • The implementation of the 'set_keyframe' tool handler.
    async def set_keyframe(
        object_name: str, property_name: str, value: Any, frame: int, ctx: Context
    ) -> str:
        """
        Set a keyframe for an object property.
    
        Args:
            object_name: Name of the object
            property_name: Name of the property to keyframe (e.g., 'position.x')
            value: Value to set at the keyframe
            frame: Frame number to set the keyframe at
        """
        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,

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