Ejemplo n.º 1
0
def get_bvh_from_str(bvh_str):
    bvh_reader = BVHReader("")
    lines = bvh_str.split("\n")
    # print(len(lines))
    lines = [l for l in lines if len(l) > 0]
    bvh_reader.process_lines(lines)
    return bvh_reader
Ejemplo n.º 2
0
 def replace_motion_from_str(self, bvh_str):
     bvh_reader = BVHReader("")
     lines = bvh_str.split("\n")
     print(len(lines))
     lines = [l for l in lines if len(l) > 0]
     bvh_reader.process_lines(lines)
     motion_vector = MotionVector()
     motion_vector.from_bvh_reader(bvh_reader, False)
     self._motion.replace_frames(motion_vector.frames)