Match View's cropbox shape.

Snippet: Function to match source view's cropbox shape to another view.

Dec 2020

CropBox

code
def match_cropbox_shape(source_view, view):
    # type: (View, View) -> None
    """Function to match cropbox shape outline from source view to another view."""
    source_CropManager = source_view.GetCropRegionShapeManager()
    source_CropShape = source_CropManager.GetCropShape()

    CropManager = view.GetCropRegionShapeManager()
    CropManager.SetCropShape(source_CropShape)

    return None