Script for changing x,y,z coordinates from mo-cap files

Hi,

I’v just found 10000 motion caputre files which can be used in Blender http://www.e-motek.com/members/stockmoves/. After free registration you can download .c files.
I don’t know python but maybe somone can write simple script which read .c file with array of joints coordinates for every frame. Script should have two inputs: filename with coordinates and frame number to apply. I think for someone who knows python quite well it’s few minutes of work.

PS.
Sorry for my English

Sysadm also has quite a few BVH mocap files on his website as well as a python script to import the moves into Blender!

http://centralsource.com/blender/bvh/

Had a look at the e-motek website. It looks like a great resource. As well as the mocap files there is also a converter available from the members area (version 1.04) that can convert from the .umf files to .bvh for use with Sysadm’s bvh.py script.

Also available is El-Sayed Abdallah Ayoub’s bvh2pos script (http://sayoub.20megsfree.com/blender.html) which is very fast and adds the motions direct to the armatures instead of target empties. It doesn’t work with all biovision data however, like this one: http://centralsource.com/blender/bvh/iart/bvhfiles/ballerina2.zip
which has some extra bones, one of which is zero length.

Also Lifeforms (http://www.lifeforms.com/products/index.html) is a useful tool for previewing and converting mocap data. I used the time limited demo to check the ballerina2 data was valid.

Does that script work with any current versions?

The GUI version uses the GUI module that, after a little digging, seemed to be a 2.10 (only?) feature? But with the non-gui script 2.25 seems to just crash.

~Toni

:smiley:
Motek released the converters from their stockmoves to the Biovision (bvh) files.
The script can be found on the following address:
http://www.e-motek.com/entertainment/stockmoves/convert.html

A Linux version can be downloaded on members area:
http://www.e-motek.com/members/download/linux

So it’s possible to convert their moves to blender using the Reevan McKay
python script found at Michael’s Blender Website:
http://www.centralsource.com/blender/bvh/what.htm

I Hope this Help.

Sergio
sergio_lineu@yahoo.com.br

has someone actually used the Blender BVH import scripts succesfully lately? last time we tried there were problems.

I’ve recently use bvh import to produce this small animation :

http://perso.wanadoo.fr/jb.perin/Mocap/bvharm.gif

I used the bvh_import2.py script that is provided here

With Blender 2.37, a bvh2arm.py script is provided that builds an armature and makes it move following the bvh created empties

In 2.40, a new bvh2arm.py script is going to be released that will only help to build a armature from bvh empties…

The rest of animation can be done by following this tutorial

Cheers …

Jean-Baptiste

nice - be sure to bug the py team if there are issues with the new API

~Toni

In 2.40, a new bvh2arm.py script is going to be released that will only help to build a armature from bvh empties…

The rest of animation can be done by following this tutorial

Thanks for this helpful link, but how do you import .bvh files into characters that are already rigged, for example ludwig ??