import_anim

import_anim(animation_file, selected=False)

This function loads and applies the animation present in a .rumba file or a .rumbaanim file to the rigs already referenced in Maya.

Loading a .rumba file launches a rumba process to export a temporary .rumbaanim file and then imports it.

Parameters
  • animation_file (str) – can be a path to a .rumba or a .rumbaanim file or the dict read from a .rumbaanim file using the json module.

  • selected (bool) – If True, apply the imported animation only to the selected nodes.

Raises

RuntimeError – in case of errors