Ejemplo n.º 1
0
    def generate_retargets_from_map(self, motion_map):

        for target in motion_map.keys():
            motion_info = motion_map[target]

            if motion_info == {}:
                continue

            # DEV_TAG - The motion base-classes is applied to the joints here.
            motion_obj  = None
            if motion_info["type"] == Mocap.rtype:
                motion_obj = generate_mocap( motion_info["curve"]
                                           , motion_info["start_frame"]
                                           , motion_info["ref_name"]
                                           , motion_info["ref_dof"] )
            else:
                raise ValueError("ERROR - motion type is invalid")

            self.add_retarget(target, motion_obj)
Ejemplo n.º 2
0
 def generate_motion_obj(self, key):
     curve = self.get_curve(key)
     name, dof = key.split(", ")
     return generate_mocap(curve, 1, name, dof)