Skip to content

review

review code

extract_annotated_frame(filepath=None)

Export frame to file

Source code in client/ayon_openrv/api/review.py
21
22
23
24
25
def extract_annotated_frame(filepath=None):
    """Export frame to file
    """
    if filepath:
        return rv.commands.exportCurrentFrame(filepath)

get_path_annotated_frame(frame=None, asset=None, asset_folder=None)

Get path for annotations

Source code in client/ayon_openrv/api/review.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
def get_path_annotated_frame(frame=None, asset=None, asset_folder=None):
    """Get path for annotations
    """
    # TODO: This should be less hardcoded
    filename = os.path.normpath(
        "{}/pyblish/exports/annotated_frames/annotate_{}_{}.jpg".format(
            str(asset_folder),
            str(asset),
            str(frame)
        )
    )
    return filename