unreal.CineAssembly¶
- class unreal.CineAssembly(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
LevelSequenceA cinematic building block that associates a level sequence with a level
C++ Source:
Plugin: CinematicAssemblyTools
Module: CineAssemblyTools
File: CineAssembly.h
Editor Properties: (see get_editor_property/set_editor_property)
asset_user_data(Array[AssetUserData]): [Read-Write] Array of user data stored with the assetinstance_metadata(Map[Name, str]): [Read-Write] User added metadata key/value pairs, which will be added as additional asset registry tagsis_data_only(bool): [Read-Write] Mark this CineAssembly as Data-Only. When Data-Only, opening a CineAssembly opens only it’s details.label(Name): [Read-Write] Semantic label for identifying this assemblylevel(SoftObjectPath): [Read-Write] The level to open before opening this asset in Sequencerparent_assembly(SoftObjectPath): [Read-Write] Reference to another assembly asset that is the parent of this assemblyproduction(Guid): [Read-Write] The ID of the Cinematic Production that this assembly is associated withshould_create(bool): [Read-Write] If true, the CineAssembly factory will create this Assembly. If false, it (and its SubAssemblies and Associated Assets) is skipped.source_assembly(CineAssembly): [Read-Write] If this assembly was duplicated from another, this holds a soft reference to the source.
- append_to_note_text(note) None¶
Append to the note text associated with this assembly
- Parameters:
note (str)
- apply_metadata(metadata) None¶
Apply a map of metadata key-value pairs to this assembly. Keys matching the schema’s AssemblyMetadata are applied with type-awareness based on each field’s defined type. Keys not found in the schema are stored as InstanceMetadata.
- find_associated_assets_by_label(label) Array[Object]¶
Get the list of Associated Assets configured on this assembly whose Label matches the input
- find_sub_assemblies_by_label(label) Array[CineAssembly]¶
Get the direct child SubAssemblies of this assembly whose Label matches the input
- Parameters:
label (Name)
- Return type:
- get_associated_asset_desc(asset_id) AssemblyAssociatedAssetDesc¶
Returns a copy of the Associated Asset descriptor with the given AssetID on the Assembly. To mutate, call one of the appropriate setter functions with the descriptor’s AssetID.
- Parameters:
asset_id (Guid)
- Return type:
- get_associated_asset_descs() Array[AssemblyAssociatedAssetDesc]¶
Returns copies of all Associated Asset descriptors on the Assembly. To mutate one, call one of the appropriate setter functions with the descriptor’s AssetID.
- Return type:
- get_associated_assets() Array[Object]¶
Get the list of Associated Assets configured on this assembly
- get_created_string() str¶
Gets the created date-time of this assembly as a localtime formatted string.
- Return type:
- get_date_created_string() str¶
Gets the date this assembly was created as a YYYY-MM-DD string.
- Return type:
- get_full_metadata_string() str¶
Get all of the metadata for this assembly as a formatted JSON string
- Return type:
- get_metadata_as_bool(key) bool or None¶
Get the metadata value for the input key as a boolean (if it exists)
- get_metadata_as_float(key) float or None¶
Get the metadata value for the input key as a floating-point number (if it exists)
- get_metadata_as_integer(key) int32 or None¶
Get the metadata value for the input key as an integer (if it exists)
- Parameters:
key (str)
- Returns:
out_value (int32):
- Return type:
int32 or None
- get_metadata_as_string(key) str or None¶
Get the metadata value for the input key as a string (if it exists)
- get_metadata_as_token_string(key) TemplateString or None¶
Get the metadata value for the input key as a token string (if it exists)
- Parameters:
key (str)
- Returns:
out_value (TemplateString):
- Return type:
TemplateString or None
- get_parent_assembly() CineAssembly¶
Get the parent assembly of this assembly
- Return type:
- get_schema() CineAssemblySchema¶
Get the base schema for this assembly
- Return type:
- get_sub_assemblies() Array[CineAssembly]¶
Get the direct child SubAssemblies of this assembly
- Return type:
- get_time_created_string() str¶
Gets the 24-hour time of day this assembly was created as a HH:MM:SS string.
- Return type:
- property is_data_only: bool¶
[Read-Write] Mark this CineAssembly as Data-Only. When Data-Only, opening a CineAssembly opens only it’s details.
- Type:
(bool)
- set_associated_asset_label(asset_id, new_label) None¶
Sets the Label of the Associated Asset descriptor matching the AssetID in the Assembly.
- set_associated_asset_name(asset_id, new_asset_name) None¶
Sets the AssetName of the Associated Asset descriptor matching the AssetID in the Assembly. Note: Operation will fail if descriptor’s asset has already been created.
- set_associated_asset_should_create(asset_id, should_create) None¶
Sets the bShouldCreate flag of the Associated Asset descriptor matching the AssetID in the Assembly. Note: This operation has no effect if the descriptor’s asset has already been created.
- set_metadata_as_integer(key, value) None¶
Add an integer as metadata to this assembly
- Parameters:
key (str)
value (int32)
- set_metadata_as_token_string(key, value) None¶
Add a tokenized string as metadata to this assembly
- Parameters:
key (str)
value (TemplateString)
- set_parent_assembly(parent) None¶
Set the parent assembly of this assembly
- Parameters:
parent (CineAssembly)
- property should_create: bool¶
[Read-Write] If true, the CineAssembly factory will create this Assembly. If false, it (and its SubAssemblies and Associated Assets) is skipped.
- Type:
(bool)
- property source_assembly: CineAssembly¶
[Read-Only] If this assembly was duplicated from another, this holds a soft reference to the source.
- Type: