add_media_layer

add_media_layer(parent: Optional[maquina.Node], name: unicode, undo_stack: bool) maquina.Node

Create a media layer.

Parameters
  • parent (Optional[maquina.Node]) – The optional parent layer. If empty, create a root layer in the active document.

  • name (unicode) – The new layer name

  • undo_stack (bool) – If true, this action is undoable

Return type

maquina.Node