anim_set_key
Write a keyframe for object properties at a given frame—position, rotation, scale, or custom attributes. Use relative mode to offset from current values.
Instructions
在指定帧为对象的某个属性写入一个关键帧(position / rotation / scale,或任意命名属性)。rotation 用欧拉角(度)表示。mode=relative 时在当前值上叠加。欧拉旋转无法插值超过 180°:车轮、转盘要改用 Quaternion/TCB 控制器,否则会出现瞬移。 [English] Write one keyframe for a property (position / rotation / scale, or any named property) at a given frame. Rotation is given as Euler angles in degrees. With relative=true the value is added on top of the current value. Euler rotation cannot interpolate past 180 degrees - spinning wheels and turntables must use a Quaternion/TCB controller or they will snap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | 关键帧所在的帧(基于场景帧率,不要假设 30fps)。 | Frame of the keyframe (respects the scene frame rate, do not assume 30 fps). | |
| value | Yes | 属性值。position/scale 为 [x,y,z],rotation 为 [x,y,z] 欧拉角(度),标量属性为单个数。 | Property value. position/scale as [x,y,z], rotation as [x,y,z] Euler degrees, scalar properties as a single number. | |
| objects | No | 对象名列表;省略则用当前选择。 | Object names; omit for the current selection. | |
| property | Yes | 属性名:position / rotation / scale,或任意命名属性。 | Property name: position / rotation / scale, or any named property. | |
| relative | No | true=在当前帧的值上叠加,false=绝对值。 | true=add to the value at that frame, false=absolute. |