python 3.x - how to apply motion to a model in blender -
i doing 1 experiment in need capture skeleton data kinect , apply data model, have captured data kinect , have stored in file, i.e in file have location of each joint in each frame, want model in blender take joint position file, , move accordingly. dont have idea on how start. have written small script in python read position file , update position of 1 bone:
obj.channels['head'].location = vector((float(xs),float(ys),float(zs)))
but not move anything. doing in wrong way, or cannot move armature updating position??
please guide me on topic, new python , blender
i don't think best solution, can export data bvh file , save lot of headaches.
you can find lot of kinect-sdk bvh tutorials on net , bvh de-facto standard store data motion capture events, there no reasons why should re-invent wheel , doing work.
to use bvh file in blender can follow one of many tutorial on subject.
Comments
Post a Comment