remove_curve_key
Delete a single keyframe from a curve channel by index or time. Prefer time or remove from highest index down to avoid index shifts; the reply shows if a key existed.
Instructions
Delete one keyframe from a curve channel, addressed either by key_index or by time -- the inverse of add_curve_key. Indices shift after a removal, so prefer addressing by time, or work from the highest index down. The reply's existed flag distinguishes "removed it" from "there was no key there"; get_curve_keys gives the indices and times.
Returns: { curve_path, curve_class, channel, num_channels, removed, existed, key_count, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | No | Time of the key to remove; provide this OR key_index | |
| channel | No | Curve channel index (defaults to 0) | |
| key_index | No | Index of the key to remove (0 <= index < key_count); provide this OR time | |
| curve_path | Yes | Full asset path of the curve |