import_plug_animation

import_plug_animation(plugs: list(Plug), filename: unicode) bool

Import an animation from a file.

Returns true if the import has succeed. Make sure to call modify_begin() before to call this function. The layer structure is added to the active document layers. The animation is then loaded in the new layers. The first new layer is set in ‘blend’ mode in order to override the old animation.

Parameters
  • plugs (list(Plug)) – The channels to import from the file. If empty, imports everything.

  • filename (unicode) – The file path, the extension should be “.rumbaanim”

Return type

bool

Raises

RuntimeError – in case of reading errors.