movis.ops.repeat#
- movis.ops.repeat(layer: BasicLayer, n_repeat: int) _RepeatLayer [source]#
Repeat a layer multiple times.
- Args:
- layer:
Layer to repeat.
- n_repeat:
Number of times to repeat the layer.
- Returns:
Composition with the layer repeated.
- Examples:
>>> import movis as mv >>> layer = mv.layer.Image("image.png", duration=1.0) >>> composition = mv.repeat(layer, 3) # repeat 3 times >>> composition.duration 3.0