movis.ops.concatenate#

movis.ops.concatenate(layers: Sequence[BasicLayer]) _ConcatenateLayer[source]#

Concatenate layers into a single composition.

Args:
layers:

Layers to concatenate.

Returns:

Composition with all layers concatenated.

Examples:
>>> import movis as mv
>>> layer1 = mv.layer.Image("image1.png", duration=1.0)
>>> layer2 = mv.layer.Image("image2.png", duration=2.0)
>>> composition = mv.concatenate([layer1, layer2])  # concatenate two layers
>>> composition.duration
3.0