{"id":30812876,"url":"https://github.com/davidpagnon/maya-mocap","last_synced_at":"2025-09-06T07:13:28.610Z","repository":{"id":161637657,"uuid":"349401477","full_name":"davidpagnon/Maya-Mocap","owner":"davidpagnon","description":"A set of tools for mocap in Maya","archived":false,"fork":false,"pushed_at":"2024-06-28T07:04:25.000Z","size":113,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-28T08:28:02.016Z","etag":null,"topics":["camera","imports","maya","mocap","trc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidpagnon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-19T11:35:28.000Z","updated_at":"2024-06-28T08:28:05.018Z","dependencies_parsed_at":"2024-06-28T08:28:04.439Z","dependency_job_id":"66cf0bc3-0f75-433c-b1f6-1b973bd5eeab","html_url":"https://github.com/davidpagnon/Maya-Mocap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidpagnon/Maya-Mocap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpagnon%2FMaya-Mocap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpagnon%2FMaya-Mocap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpagnon%2FMaya-Mocap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpagnon%2FMaya-Mocap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidpagnon","download_url":"https://codeload.github.com/davidpagnon/Maya-Mocap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidpagnon%2FMaya-Mocap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273869654,"owners_count":25182688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera","imports","maya","mocap","trc"],"created_at":"2025-09-06T07:13:21.540Z","updated_at":"2025-09-06T07:13:28.595Z","avatar_url":"https://github.com/davidpagnon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--\n * @Date: 2021-03-19 15:52:32\n * @Author: David Pagnon\n * @LastEditors: David Pagnon\n * @LastEditTime: 2021-03-19 15:52:32\n * @FilePath: /Maya-Mocap/Readme.md\n--\u003e\n\n# Maya Mocap\n\n\u003e **N.B.: This toolbox is not maintained anymore. You can switch to [Pose2Sim_Blender](https://github.com/davidpagnon/Pose2Sim_Blender) to get access to similar tools (and more).**\n\n**[Maya Mocap](https://github.com/davidpagnon/Maya-Mocap)** is a collection of open-source tools for Motion Capture in Maya.\n\nTested on Maya 2018 (python 2) and on Maya 2022 (python 3). Not tested on Linux nor MacOS yet.\n\n\n## Contents\n1. [How to](#how-to)\n2. [Camera toolbox](#camera-toolbox)\n3. [Imports](#imports)\n    1. [OBJ sequence import](#obj-sequence-import)\n    2. [Opensim import](#opensim-import)\n    3. [TRC import](#trc-import)\n    4. [C3D import](#c3d-import)\n    5. [BVH import](#bvh-import)\n    6. [FBX import](#fbx-import)\n4. [Others](#others)\n    1. [C3D to TRC](#c3d-to-trc)\n5. [To-do list](#to-do-list)\n6. [Send Us Feedback!](#send-us-feedback)\n9. [Contributers](#contributers)\n10. [Citation](#citation)\n11. [License](#license)\n\n## How to\n\n  1. First you need to install python packages in Maya.\n  Open a command prompt (Windows -\u003e cmd).\\\n  Type the following (replace `\u003cYEAR\u003e` with your version):\n    \n       ```\n       \"C:\\Program Files\\Autodesk\\Maya\u003cYEAR\u003e\\bin\\mayapy\" -m pip install opencv-python pandas c3d numpy anytree toml\n       ```\n\u0026emsp;\u0026emsp;If it does not work, check [there](http://mgland.com/qa/en/?qa=1748/how-to-use-pip-with-maya).\n  \n  2. Clone the repository or just download the python pieces of code you need.\n\n  3. Open file at `\u003cPATH_TO_DOCUMENTS_FOLDER\u003e\\maya\\\u003cYEAR\u003e\\maya.env`. Create it if it does't exist.\\\n     Type the following (replace what's in capital letters):\n       ```\n       MAYA_SHELF_PATH = \u003cPATH_TO_MAYA_MOCAP\u003e\\shelves\n       PYTHONPATH = \u003cPATH_TO_MAYA_MOCAP\u003e\\scripts \n       MAYA_PLUG_IN_PATH = \u003cPATH_TO_MAYA_MOCAP\u003e\\plug-ins\n       ```\n       \n       You may also need to add this PYTHONPATH to your environment variables.\\\n       `Windows -\u003e Environment Variables -\u003e New -\u003e Name: PYTHONPATH, Value: \u003cPATH_TO_MAYA_MOCAP\u003e\\scripts` \n \n \n That's it! After opening Maya, you should get a new shelf with new tools ready to be used.\\\n![image](https://user-images.githubusercontent.com/54667644/114212078-b3a8e580-9961-11eb-9b3c-6c69ffd114e3.png)\n\n\n## Camera toolbox\n`maya_camToolbox.py` is a toolbox for various operations on cameras in Maya.\\\nLets you: \n* set cameras in scene from chosen specs.\n* or set cameras from calibration file (.toml).\n* save a calibration file from cameras in scene.\n* film image sequences from the cameras in scene.\n* display image sequences in scene.\n* reproject selected objects on image camera planes.\n* display 3D path of selected objects (due to a bug in Maya 2018, works only for \"all frames\" in this version).\n\n![image](https://user-images.githubusercontent.com/54667644/113886128-b7e9cd00-97c0-11eb-99d5-35e6ceb51b7a.png)\n![image](https://user-images.githubusercontent.com/54667644/113885480-28dcb500-97c0-11eb-85c4-cfa0edeee5ba.png)\n\n\n## Imports\n\n### OBJ sequence import\n`maya_objs.py` lets you:\n* Displays a sequence of OBJ files in an \"objStreamNode\" (uses plug-in `objStreamNode`).\n* These OBJ don't need to be coherent in time (e.g. vertex number, etc).\n* Assign textures to the meshes.\n\n![image](https://user-images.githubusercontent.com/54667644/114210911-51031a00-9960-11eb-8320-d86390c3d4de.png)\n\n### Opensim import\n...Coming soon...\\\n`maya_osim.py` lets you:\n* Import an .osim model.\n* Animate it with .mot inverse kinematics.\n\n### TRC import\n`maya_trc.py` lets you:\n* Import trc files.\n* Choose if you only want to display the markers, or also to construct the skeleton.\n* In case you want the skeleton (and it's not Openpose body_25b), please refer to the section SKELETON DEFINITION.\n\n![image](https://user-images.githubusercontent.com/54667644/113013546-176e2a00-917c-11eb-977c-2cf9dc8513cb.png)\n\n### C3D import\n`maya_c3d.py` lets you:\n* First convert c3d to trc files using `c3d2trc.py`.\n* Then import resulting trc files.\n* Choose if you only want to display the markers, or also to construct the skeleton.\n* In case you want the skeleton (and it's not Openpose body_25b), please refer to SKELETON DEFINITION in trc import.\n* :warning: Beware that it only allows you to retrieve 3D points, you won't get analog data with this code.\n\n### BVH import\nJeroen Hoolmans wrote an awesome free [BVH (BioVision Hierarchy) importer](https://github.com/jhoolmans/mayaImporterBVH).\\\nIt is slightly adapted here to be made compatibly with python 3 (Maya 2022 and above).\n\n### FBX import\nInstructions for importing FBX files can be found [at this address](https://www.instructables.com/How-To-Use-Mocap-Files-In-Maya-BVH-or-FBX/).\n\n\n## Others\n### C3D to TRC\n`c3d2trc.py` lets you:\n* Convert c3d binary files to trc format.\n* Usage: Open a command line in your cloned repository. \\\nType `python c3d2trc -i '\u003cyour_c3d_file\u003e`\nor `python c3d2trc.py -i \u003cyour_c3d_file\u003e -o \u003cyour_trc_file\u003e`.\n* :warning: Beware that it only allows you to retrieve 3D points, you won't get analog data with this code.**\n\n## To-do list\nThis repository is meant to get more tools in the future. Please feel free to add your suggestions and/or code!\nAmong others, I'd like to add:\n- An Xsens importer.\n- An Opensim importer (.osim model, and .mot inverse kinematics).\n\n\n## Send Us Feedback!\n\nThis 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:\n1. Find/fix any bug or know how to improve anything.\n2. Want to add/show some cool functionality/demo/project regarding motion capture in Maya. We would love to integrate your project to this repository!\n\n## Contributers\nDavid Pagnon (maintainer), contact@david-pagnon.com\\\nLionel Reveret, lionel.reveret@inria.fr\n\n## Citation\nIf you find our work useful in your research, please cite it.\n\u003c!-- our paper [RFC] https://www.ye-yuan.com/rfc\n```\n@inproceedings{yuan2020residual,\n  title={Residual Force Control for Agile Human Behavior Imitation and Extended Motion Synthesis},\n  author={Yuan, Ye and Kitani, Kris},\n  booktitle={Advances in Neural Information Processing Systems},\n  year={2020}\n}\n``` --\u003e\n\n## License\nThe code found on this repository is free to use, edit, and redistribute under the BSD-3 licensing terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidpagnon%2Fmaya-mocap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidpagnon%2Fmaya-mocap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidpagnon%2Fmaya-mocap/lists"}