UPDATED: How to Use Mocap Files in Maya, BVH or FBX
Intro: UPDATED: How to Use Mocap Files in Maya, BVH or FBX
For those with an FBX file, skip to the next step.
This tutorial is made for Maya 2013, but I believe it should work in 2010-2015.
Good resource for open source mocap data: Original FilesConverted to BVH
Since many users were having difficulty using the fbx converter from Autodesk, I've found another method. This method is actually better, I believe, since it runs natively in Maya as a small script file which takes up less room and improves workflow. The python file is an attachment on the instructable. To install put the py file into your Maya script directory (documents/maya/scripts). Now open up Maya and at the bottom of your window there will be a text entry field. To the left of that it will say either MEL or Python. If it says MEL, click on the words MEL. Now copy paste the following into the text field
import bvh_importer
bvh_importer.BVHImporterDialog()
Now you can hit enter to run the script once, or preferably highlight the text you pasted and middle mouse click and drag the text onto a shelf of your choice at the top such as the animation shelf for quick access.
Here are the links: install instructions additionally, here is the github where the project is located.
Motionbuilder also works to convert the files using the file>motion file import and then exporting it as fbx.
STEP 1: Import the FBX to Maya
For those using an fbx file, first make sure that the Maya fbx importer plugin is loaded by going to WINDOW->SETTINGS/PREFERENCES->PLUG-IN MANAGER and checking the box to load the fbx importer (for me it is called fbx Maya).
For those with the importer script simply click on the shelf icon you created or enter the command into Maya. Browse to the file and enter the appropriate information for your rig. (default should work)
STEP 2: Define Skeleton
Once your fbx is loaded, go to the animation menu set and then select SKELETON->HUMAN IK
STEP 3: Assign Joints
Repeat the procedure of defining a skeleton and then mapping out the joints with the motion capture character skeleton.
STEP 4: Make the Fbx Drive the Main Rig
If you did everything correctly, when you press play your character should move the same as the motion capture rig.
Hope you guys enjoyed this quick and easy tutorial! Share any cool animations that you make with this!
10 Comments
yesupatham 5 years ago
Great! Awesome!! Nice script.. Still works in Maya 2018. Just installed as instructed above and it Worked. If anyone having mess with bone / weird result after importing .bvh file, change the rotation order it will work. Default XYZ order didn't work for me then i have changed it to YXZ and worked fine. Thanks for the script.....
quaido 9 years ago
i downloaded the converter from your ad link and there is no where in it to convert bvh to fbx. it can load all other files :(
mykiscool 9 years ago
rameezmalik 9 years ago
hi,
would you please help to convert *.bvh into *.fbx?
it would be really appreciate.
Thanks,
Rameez
mykiscool 9 years ago
Yes, I sent you a private message with my email.
MarianaT6 7 years ago
Hello. I would like to know if you could please help me to convert .skm motion into .bvh. I tried, but when i try to open in Motion Builder it gives an error that the file is corrupted.
mykiscool 9 years ago
I know this is a bit late, but I've updated the instructable to make it more efficient easier for people. I found a script to replace the converter program.
audreyobscura 9 years ago
Nice job with your modelling project - thanks for sharing it on instructables. What do you think you are going to publish next?
mykiscool 9 years ago
MrJetP0619 9 years ago
do you think you can help me with my bvh files? to bake in a maya rig and help clean up with my animations?