unreal.PromotedFrameUtils¶
- class unreal.PromotedFrameUtils(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectUtility functions to generate data for promoted frame
C++ Source:
Plugin: MetaHuman
Module: MetaHumanIdentity
File: PromotedFrameUtils.h
- classmethod get_image_path_for_frame(footage_capture_data, camera, frame_id, is_image_sequence, alignment) str¶
A helper function to determine the full path to a frame, taking into account timecode alignment
- Parameters:
footage_capture_data (FootageCaptureData)
camera (str)
frame_id (int32)
is_image_sequence (bool)
alignment (TimecodeAlignment)
- Return type:
- classmethod get_promoted_frame_as_pixel_array_from_disk(image_path) (out_image_size=IntPoint, out_local_samples=Array[Color]) or None¶
Assigns loaded texture from specified path to TArray of BGRA colors. Returns true if successfully read and assigned data
- Parameters:
image_path (str)
- Returns:
out_image_size (IntPoint):
out_local_samples (Array[Color]):
- Return type:
tuple or None
- classmethod initialize_contour_data_for_footage_frame(pose, footage_frame) bool¶
Initialization function exposed for scripting - parses contour data config & updates footage frame
- Parameters:
pose (MetaHumanIdentityPose)
footage_frame (MetaHumanIdentityFootageFrame)
- Return type: