N.B.: This toolbox is not maintained anymore. You can switch to Pose2Sim_Blender to get access to similar tools (and more).
Maya Mocap is a collection of open-source tools for Motion Capture in Maya.
Tested on Maya 2018 (python 2) and on Maya 2022 (python 3). Not tested on Linux nor MacOS yet.
First you need to install python packages in Maya.
Open a command prompt (Windows -> cmd).\
Type the following (replace <YEAR>
with your version):
"C:\Program Files\Autodesk\Maya<YEAR>\bin\mayapy" -m pip install opencv-python pandas c3d numpy anytree toml
If it does not work, check there.
Clone the repository or just download the python pieces of code you need.
Open file at <PATH_TO_DOCUMENTS_FOLDER>\maya\<YEAR>\maya.env
. Create it if it does't exist.\
Type the following (replace what's in capital letters):
MAYA_SHELF_PATH = <PATH_TO_MAYA_MOCAP>\shelves
PYTHONPATH = <PATH_TO_MAYA_MOCAP>\scripts
MAYA_PLUG_IN_PATH = <PATH_TO_MAYA_MOCAP>\plug-ins
You may also need to add this PYTHONPATH to your environment variables.\
Windows -> Environment Variables -> New -> Name: PYTHONPATH, Value: <PATH_TO_MAYA_MOCAP>\scripts
That's it! After opening Maya, you should get a new shelf with new tools ready to be used.\
maya_camToolbox.py
is a toolbox for various operations on cameras in Maya.\
Lets you:
maya_objs.py
lets you:
objStreamNode
)....Coming soon...\
maya_osim.py
lets you:
maya_trc.py
lets you:
maya_c3d.py
lets you:
c3d2trc.py
.Jeroen Hoolmans wrote an awesome free BVH (BioVision Hierarchy) importer.\ It is slightly adapted here to be made compatibly with python 3 (Maya 2022 and above).
Instructions for importing FBX files can be found at this address.
c3d2trc.py
lets you:
python c3d2trc -i '<your_c3d_file>
or python c3d2trc.py -i <your_c3d_file> -o <your_trc_file>
.This repository is meant to get more tools in the future. Please feel free to add your suggestions and/or code! Among others, I'd like to add:
This library is open source for research purposes, and I want to improve it! So let me know (create a new GitHub issue or pull request, email us, etc.) if you:
David Pagnon (maintainer), contact@david-pagnon.com\ Lionel Reveret, lionel.reveret@inria.fr
If you find our work useful in your research, please cite it.
The code found on this repository is free to use, edit, and redistribute under the BSD-3 licensing terms.