HY-Motion Runner is a custom ComfyUI node that enables fully local text-to-motion → FBX animation generation using HY-Motion-1.0.
It acts as a bridge between:
- HY-Motion CLI (Python-based backend)
- ComfyUI node-based workflows
- Unreal Engine-ready animation pipelines
This node is designed with production workflows in mind, focusing on clean output structure, deterministic naming, metadata tracking, and full offline operation.
- ✅ Fully local execution (no cloud dependency)
- ✅ Direct FBX export
- ✅ Category-based folder organization
- ✅ Prefix / suffix naming system
- ✅ Incremental numbering using
# - ✅ External preset library (
.json) - ✅ Per-animation
.log.txtand.meta.json - ✅ Automatic temporary folder cleanup
- ✅ Optional auto-open output folder
- ✅ Stable CLI-based HY-Motion integration
- ComfyUI
- HY-Motion-1.0 (local installation)
- Python 3.10+
- A dedicated virtual environment (venv)
- HY-Motion model checkpoints
- FBX export working correctly
-
HY-Motion-1.0 (Official Repository): https://github.com/Tencent-Hunyuan/HY-Motion-1.0
-
Python Downloads: https://www.python.org/downloads/
-
Python
venvDocumentation: https://docs.python.org/3/library/venv.html -
ComfyUI Custom Node Installation Guide: https://docs.comfy.org/installation/install_custom_node
HY-Motion requires specific versions of key libraries, including:
torchtorchvisiontransformersdiffusersacceleratehuggingface_hub
Install all dependencies via HY-Motion’s official:
pip install -r requirements.txtHY-Motion expects a local checkpoint structure similar to:
ckpts/
├── tencent/
│ ├── HY-Motion-1.0/
│ └── HY-Motion-1.0-Lite/
├── clip-vit-large-patch14/
├── Qwen3-8B/
└── Text2MotionPrompter/ (optional)
Follow the official HY-Motion setup:
- Install PyTorch
- Clone repository
- Run:
git lfs pull- Install dependencies:
pip install -r requirements.txtRecommended:
python -m venv venvActivate and install dependencies inside it.
ComfyUI/custom_nodes/
ComfyUI/resources/ComfyUI/custom_nodes/hy_motion_runner
Place files:
hy_motion_runner/
├── __init__.py
├── hy_motion_node.py
└── preset_library.json
Edit inside the node:
hy_root = Path(r"E:\AI\HY-Motion-1.0")final_output_root = Path(r"E:\GRapHiC\Animations\HYM")Fully restart after installation.
| Input | Description |
|---|---|
prompt |
Custom motion description |
preset |
Predefined motion template |
category |
Output folder group |
base_name |
Base animation name |
prefix |
Prepended string |
suffix |
Appended string |
duration_frames |
Animation length |
seed_mode |
Random or fixed |
num_seeds |
Variation count |
overwrite_mode |
next / overwrite / skip |
Supports incremental numbering via #.
prefix = A_Stalker_
base_name = HeartAttack
suffix = _v##
Output:
A_Stalker_HeartAttack_v01.fbx
A_Stalker_HeartAttack_v02.fbx
A_Stalker_HeartAttack_v03.fbx
E:\GRapHiC\Animations\HYM\
└── Death\
├── A_Stalker_HeartAttack_v01.fbx
├── A_Stalker_HeartAttack_v01.log.txt
├── A_Stalker_HeartAttack_v01.meta.json
Stored in:
preset_library.json
Example:
{
"jump": "A person jumps upward with both legs once.",
"death": "A person collapses to the ground dramatically."
}Reload dynamically:
reload_preset_library = True
Each animation generates:
{
"prompt": "...",
"effective_prompt": "...",
"model_variant": "...",
"duration_frames": 150,
"final_fbx_path": "...",
"command": [...]
}- Debugging
- Reproducibility
- Pipeline tracking
| Mode | Behavior |
|---|---|
next |
Uses next index |
overwrite |
Replaces existing |
skip |
Skips generation |
- Does NOT generate custom rigs
- Uses built-in humanoid skeleton (SMPL-based)
- Requires retargeting for custom characters
HY-Motion may output warnings such as:
No SMPL data found...
This does NOT prevent FBX generation. The animation is still exported successfully.
- Import FBX
- Assign skeleton
- Retarget if needed
- Use in Animation Blueprint
-
HY-Motion-1.0 Repository https://github.com/Tencent-Hunyuan/HY-Motion-1.0
-
Python Official Downloads https://www.python.org/downloads/
-
Python Virtual Environment Docs https://docs.python.org/3/library/venv.html
-
ComfyUI Custom Nodes Guide https://docs.comfy.org/installation/install_custom_node
- Batch processing
- Deterministic seed control
- UI tooltips / field descriptions
- Preset categorization
- Advanced prompt composition
This tool is built for:
- Developers building pipelines
- Game developers integrating AI animation
- Artists working with iterative workflows
It prioritizes:
- Stability
- Clarity
- Control
Free for use and modification.
- HY-Motion by Tencent
- ComfyUI ecosystem
- Developed by Caisy & Aki
This is not just a node.
It is a bridge between AI motion generation and real production pipelines.