Render Anmations in Blender

This part describes the methods/classes we apply to render animations in Blender. Note that Blender already has a solid Python API, Please refer to its documentation for more details.

render.blender.utils.clear_all_animation()[source]

Clear all keyframes in animation

render.blender.utils.import_fbx(file_path: str)[source]

Import fbx model into blender

Parameters

file_path (str) – path to the fbx file

render.blender.utils.import_smplx(gender: str)[source]

Import smplx model into blender

Parameters

gender (str) – gender of file

render.blender.utils.set_amass_animation(data, frame_distance=1)[source]

set animation with data of amass form

Parameters
  • data – amass data

  • frame_distance – set keyframe across every frame_distance, default is 1

render.blender.utils.set_amc_animation(amc_file_path: str, frame_distance=1)[source]

set animation with data of amc form

Parameters
  • data – file path to amc data

  • frame_distance – set keyframe across every frame_distance, default is 1

render.blender.utils.set_joint_location_keyframe(joint: Any, data: List[float], frame: int)[source]

Insert a keyframe for a specified joint location

Parameters
  • joint (int) – Object to the joint

  • data (List[float]) – data of the location of joint

  • joint – the frame that should insert the key

render.blender.utils.set_joint_rotation_keyframe(joint: Any, data: List[float], frame: int, mode: str = 'euler', axis: Optional[List[str]] = None)[source]

Insert a keyframe for a specified joint rotation

Parameters
  • joint (str) – Object to the joint

  • data (List[float]) – data of the rotation of joint

  • joint – the frame that should insert the key

  • mode (int) – rotation mode (select from euler and quaternion)

  • axis (List[str]) – the specifed axis that data corresponds to