user2190460
user2190460

Reputation: 9

how to apply motion to a model in blender

I am doing one experiment in which I need to capture skeleton data from kinect and then apply that data to a model, I have captured data from kinect and have stored it in a file, i.e in a file i have location of each joint in each frame, Now I want my model in blender to take the joint position from file, and move accordingly. But I dont have any idea on how to start. I also have written a small script in python to read position from file and update the position of one bone:

    obj.channels['head'].location = Vector((float(xs),float(ys),float(zs)))

but it does not move anything. Am I doing it in wrong way, or we cannot move the armature by just updating the position??

Please guide me on this topic, as i am completely new to python and blender

Upvotes: 0

Views: 367

Answers (1)

user2244984
user2244984

Reputation: 469

I don't think that this is the best solution, you can simply export your data to a bvh file and save yourself from a lot of headaches.

You can find a lot of Kinect-sdk to bvh tutorials on the net and the bvh is the de-facto standard to store data from motion capture events, there are no reasons why you should re-invent the wheel and doing extra work.

To use your bvh file in Blender you can simply follow one of the many tutorial on the subject.

Upvotes: 0

Related Questions