Skip to main content
Glama

set_keyframe

Set animation keyframes for object properties in 3ds Max, including position, rotation, scale, and custom attributes at specified frames.

Instructions

在 3ds Max 中为指定物体的属性设置关键帧。

该工具可以在指定帧为物体的变换属性(位置/旋转/缩放)或自定义属性设置关键帧。

Args: object_name: 目标物体名称。 frame: 关键帧所在的帧号,如 "0"、"30"、"60"。 position: 在该帧的位置值,格式 "x,y,z"。留空表示不设置位置关键帧。 rotation: 在该帧的旋转值(欧拉角度数),格式 "x,y,z"。留空表示不设置旋转关键帧。 scale: 在该帧的缩放值,格式 "x,y,z" 或单个值如 "2"。留空表示不设置缩放关键帧。 property_name: 自定义属性名(如 "radius"、"height" 等)。与 property_value 配合使用。 property_value: 自定义属性在该帧的值。

Returns: dict: 操作结果。 - success (bool): 是否成功。 - object_name (str): 物体名称。 - frame (int): 关键帧号。 - keys_set (list): 成功设置的关键帧类型列表。 - message (str): 操作描述信息。

示例调用 - 设置位置关键帧: set_keyframe(object_name="Box001", frame="0", position="0,0,0") set_keyframe(object_name="Box001", frame="30", position="100,0,0")

示例调用 - 设置位置和旋转关键帧: set_keyframe(object_name="Box001", frame="0", position="0,0,0", rotation="0,0,0") set_keyframe(object_name="Box001", frame="60", position="100,0,0", rotation="0,0,360")

示例调用 - 设置自定义属性关键帧(如半径动画): set_keyframe(object_name="Sphere001", frame="0", property_name="radius", property_value="10") set_keyframe(object_name="Sphere001", frame="30", property_name="radius", property_value="50")

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_nameYes
frameYes
positionNo
rotationNo
scaleNo
property_nameNo
property_valueNo
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains what the tool does (sets keyframes for animation) and provides multiple usage examples, but doesn't mention error conditions, permission requirements, or what happens when multiple properties are set simultaneously. The description doesn't contradict any annotations since none exist.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with clear sections: purpose statement, parameter explanations, return format, and multiple usage examples. While comprehensive, it could be slightly more concise as some information in the examples is somewhat repetitive. Every sentence adds value, particularly the examples which demonstrate different usage patterns.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter mutation tool with no annotations and no output schema, the description does an excellent job of explaining what the tool does, how to use it, and what to expect. The inclusion of return format details and multiple concrete examples provides substantial context. The main gap is lack of explicit error handling or edge case information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing detailed parameter explanations in the Args section. Each of the 7 parameters is clearly explained with format examples (e.g., 'x,y,z' format for position, frame numbers as strings), default behaviors (留空表示不设置 - leave empty means don't set), and relationships between parameters (property_name与property_value配合使用 - property_name used together with property_value).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('设置关键帧' - set keyframe) on specific resources ('指定物体的属性' - specified object's properties) in a specific context ('在 3ds Max 中' - in 3ds Max). It distinguishes from siblings like set_object_transform (which sets transform without keyframing) and set_object_property (which sets properties without keyframing).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context about when to use this tool - for setting keyframes on object properties in 3ds Max animation workflows. It mentions specific use cases (transform properties vs custom properties) but doesn't explicitly state when NOT to use it or name specific alternatives among the sibling tools, though the distinction is implied through the tool's specific functionality.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/317431629/3dsMaxMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server