trigger.utils.mocap.mapper ========================== .. py:module:: trigger.utils.mocap.mapper .. autoapi-nested-parse:: Mocap mapper for importing motion capture data from an FBX file. Attributes ---------- .. autoapisummary:: trigger.utils.mocap.mapper.LOG Classes ------- .. autoapisummary:: trigger.utils.mocap.mapper.MocapMapper Module Contents --------------- .. py:class:: MocapMapper(anim_fbx_file=None, bind_pose_fbx_file=None, keep_fbx=False, bake=True) Bases: :py:obj:`object` Mocap mapper for importing motion capture data from an FBX file. .. py:method:: apply_animation() Apply the animation to the rig. .. py:method:: list_mappings() List the available mappings. .. py:method:: set_anim_fbx(fbx_file) Set the FBX file. Args: fbx_file (str): Path to the FBX file. .. py:method:: set_bake(bake) Set the bake flag. Args: bake (bool): Bake the animation. .. py:method:: set_bind_pose_fbx(fbx_file) Set the FBX file. Args: fbx_file (str): Path to the FBX file. .. py:method:: set_keep_fbx(keep_fbx) Set the keep_fbx flag. Args: keep_fbx (bool): Keep the FBX file after import. .. py:method:: set_mapping(mapping_name) Set the mapping from the list of available mappings. Args: mapping_name (str): Name of the mapping. .. py:method:: set_mapping_dictionary(mapping_dictionary) Set the mapping. Args: mapping_dictionary (dict): Mapping of the FBX file to the scene. .. py:data:: LOG