unity_create_animation_clip
Generate Unity AnimationClip .anim files from JSON blueprints for blend shape animations such as facial expressions and toggles.
Instructions
Generate a Unity AnimationClip .anim file from JSON blueprint. Used for blend shape animations (face tracking, expressions, toggles).
Parameters:
project_path: Unity project path
clip_json: JSON defining the clip. Format: {"name": "Smile", "length": 0.0, "curves": [ {"path": "Body", "property": "blendShape.jawOpen", "keys": [{"time": 0, "value": 0}, {"time": 1, "value": 100}]}, {"path": "Body", "property": "m_IsActive", "keys": [{"time": 0, "value": 1}]} ]} For single-frame clips (toggles), use length: 0 and one keyframe.
output_path: Where to save the .anim file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_json | No | ||
| output_path | No | Assets/VRC/Animations/clip.anim | |
| project_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |