unreal.ImgMediaSource¶
- class unreal.ImgMediaSource(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BaseMediaSourceMedia source for EXR image sequences.
Image sequence media sources point to a directory that contains a series of image files in which each image represents a single frame of the sequence. BMP, EXR, PNG and JPG images are currently supported. EXR image sequences are optimized for performance. The first frame of an image sequence is used to determine the image dimensions (all formats) and frame rate (EXR only).
The image sequence directory may contain sub-directories, which are called ‘proxies’. Proxies can be used to provide alternative media for playback during development and testing of a game. One common scenario is the use of low resolution versions of image sequence media on computers that are too slow or don’t have enough storage to play the original high-res media.
C++ Source:
Plugin: ImgMedia
Module: ImgMedia
File: ImgMediaSource.h
Editor Properties: (see get_editor_property/set_editor_property)
fill_gaps_in_sequence(bool): [Read-Write] If true, then any gaps in the sequence will be filled with blank frames.frame_rate_override(FrameRate): [Read-Write] Overrides the default frame rate stored in the image files (0/0 = do not override).layer_name(str): [Read-Write] (EXR only) Name of the layer to read. Empty reads the default (un-prefixed) channels. Supports wildcards (* and ?).platform_player_names(Map[str, Name]): [Read-Write] Override native media player plug-ins per platform (Empty = find one automatically).proxy_override(str): [Read-Write] Name of the proxy directory to use.sequence_path(DirectoryPath): [Read-Write] The directory that contains the image sequence files.Relative paths will be with respect to the current Project directory.
You may use {engine_dir} or {project_dir} tokens.
sequence_proxy(ImgMediaSourceCustomizationSequenceProxy): [Read-Write] This is only used so we can customize editing of SequencePath.source_color_settings(MediaSourceColorSettings): [Read-Write] Manual definition of media source color space & encoding.start_timecode(Timecode): [Read-Write] Specification of a timecode associated with the start of the sequence.
- add_target_object(actor) None¶
Deprecated. Tile-visibility registration has moved to FMediaTextureTracker; consumers populate FMediaTextureTrackerObject::TileVisibilityProvider (or the legacy enum fields) directly instead of registering actors against the source. This function is now a no-op. deprecated: AddTargetObject is no longer needed. Tile-visibility consumers register through FMediaTextureTracker.
- Parameters:
actor (Actor) – Ignored.
- property fill_gaps_in_sequence: bool¶
[Read-Write] If true, then any gaps in the sequence will be filled with blank frames.
- Type:
(bool)
- property frame_rate_override: FrameRate¶
[Read-Write] Overrides the default frame rate stored in the image files (0/0 = do not override).
- Type:
- get_sequence_path() str¶
Get the path to the image sequence directory to be played. Supported tokens will be expanded. see: SetSequencePath
- Returns:
The file path.
- Return type:
- property layer_name: str¶
[Read-Write] (EXR only) Name of the layer to read. Empty reads the default (un-prefixed) channels. Supports wildcards (* and ?).
- Type:
(str)
- remove_target_object(actor) None¶
Deprecated. Pair to AddTargetObject; now a no-op for the same reason. deprecated: RemoveTargetObject is no longer needed. Tile-visibility consumers register through FMediaTextureTracker.
- Parameters:
actor (Actor) – Ignored.
- property sequence_path: DirectoryPath¶
[Read-Only] The directory that contains the image sequence files.
Relative paths will be with respect to the current Project directory.
You may use {engine_dir} or {project_dir} tokens.
- Type:
- set_sequence_path(path) None¶
Set the path to the image sequence directory this source represents. see: GetSequencePath
- Parameters:
path (str) – The path to an image file in the desired directory.
- set_tokenized_sequence_path(path) None¶
Set the path to the image sequence directory this source represents. see: GetSequencePath
- Parameters:
path (str) – The path to the desired image sequence directory. May contain supported tokens.
- property source_color_settings: MediaSourceColorSettings¶
[Read-Only] Manual definition of media source color space & encoding.
- Type: