unreal.ImgMediaSource
¶
- class unreal.ImgMediaSource(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BaseMediaSource
Media 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).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.
- add_global_camera(actor) None ¶
Add Global Camera deprecated: AddGlobalCamera has been deprecated.
- Parameters:
actor (Actor) –
- add_target_object(actor) None ¶
This object is using our img sequence.
- Parameters:
actor (Actor) – Object using our img sequence.
- 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:
- remove_global_camera(actor) None ¶
Remove Global Camera deprecated: RemoveGlobalCamera has been deprecated.
- Parameters:
actor (Actor) –
- remove_target_object(actor) None ¶
This object is no longer using our img sequence.
- Parameters:
actor (Actor) – Object no longer using our img sequence.
- 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_mip_level_distance(distance) None ¶
Set Mip Level Distance deprecated: SetMipLevelDistance has been deprecated.
- Parameters:
distance (float) –