movis.layer.layer_ops.LuminanceMatte#
- class movis.layer.layer_ops.LuminanceMatte(mask: BasicLayer, target: BasicLayer)[source]#
A layer that replaces the alpha channel of the target layer with the luminance of the mask layer.
Note
The mask layer and the target layer should have the same size and the same duration. Using the Composition layer is preferred if users want to align them.
- Args:
- mask:
the base mask layer used for luminance matte.
maskmust comply with theBasicLayerprotocol.- target:
the target layer to which luminance matte is applied.
targetmust comply with theBasicLayerprotocol.
Methods
Attributes
durationThe duration of the layer.