|
|
||
|---|---|---|
| .vscode | ||
| cmake/modules | ||
| src | ||
| .gitignore | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| README.md | ||
| requirements.txt | ||
README.md
Video2ARKit for Maya
Use google mediapipe to convert video to ARKit blendshape in maya
Requirement
- Maya 2023+
- Python 3.9+
Build and Install
mayapy -m pip install -r requirements.txt
Set MAYA_MODULE_PATH to Video2ARKit.mod directory in Maya.env
# Maya.env
MAYA_MODULE_PATH=[plugin_install_dir]/Video2ARKit
Usage
The model file is in Video2ARKit/models/face_landmarker.task folder.
The source link is Face Landmarker, download the face_landmarker.task and place into Video2ARKit/models folder.
Load Plugin
from maya import cmds
cmds.loadPlugin("Video2ARKit.py")
Convert Video to ARKit blendshape .json
from maya import cmds
cmds.a2vCmds(videoPath=r'C:\MyVideo.mp4', outputPath=r'C:\Output.json')