StackExchange Blender
Mocap Data to pose animation
Hey there!
I’m having a CSV mocap file as my input to blender. The file line consists of frame number and 17 keypoints XYZ relative to the center of the world/body coordinates (all the way up to 52 columns) . I’m able to successfully parse it into series of 17 meshes and their XYZ coordinates and place them within respective keyframes. Thus within a Blender I'm now able to confirm mocap data is quite clean.
Now I’m into trying to come up with an actual pose animation for that file. For that matter I’ve created an armature visually close representing a number of bones within a shot and parented my model to that. Now I want to actually animate the armature. Considering my input file format I'm treating that as assigning head/tails coordinates within a pose mode.
The problem is it seems bpy is not able to assign head/tails coordinates other than on Edit Mode. Meaning head/tail coordinates are not editable within a Pose Mode. Meaning I cannot actually animate the armature. So at this point I’m kinda stuck.
Any comments or advices on how to approach the task given the format I'm working with would be highly appreciated! I’m really into something promising with machine learning and stuff for character animation but I’m stuck with trying to show the demo within a blender.
EDIT (for the sake of clarity): CSV contains keypoints coordinates where main bones connect not actual bones coordinates. Example: elbow left, knee right, etc
so basically an idea is:
damped trackconstraintcopy_locationconstraint parented to the mesh cloud out of csv keypoints?it seems the rotation received from bones can provide some mess? any tips on bpy for that?
again, thank you so much for pointing, this is tremendous progress I'm having on the issue
– Slava Smirnov Jun 18 '20 at 10:33