omimo / PyMO

A library for machine learning research on motion capture data
https://omid.al/projects/pymo/
MIT License
350 stars 71 forks source link

how to edit a bvh file? #12

Open chuangyu-robotics opened 3 years ago

chuangyu-robotics commented 3 years ago

I would like to copy some frames from one BVH file to replace another BVH file and save a new BVH file, how to code?

Thanks in advance!!

csaund commented 3 years ago

this is also a feature I'd like to see. I have a very unclever way of doing this at the moment but it doesn't take advantage of this package. Since you're presumably using the same skeleton/hierarchy you can copy the headers, calculate where you want to cut the frames, and read lines through the file until you get there as a bit of a hacky way to go about it.