unreal.MovieGraphValueView¶
- class unreal.MovieGraphValueView(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectProvides a scripting-friendly way to get/set values, and add/remove properties, in a property bag.
Does not protect against invalid property bags. When using, ensure that the property bag that the view is initialized with is valid. The view will also not take ownership of the property bag.
C++ Source:
Plugin: MovieRenderPipeline
Module: MovieRenderPipelineCore
File: MovieGraphValueView.h
- add_properties(properties) bool¶
Bulk adds properties to the container. Much more efficient than calling AddProperty() in a loop. Returns true if all properties were successfully added, else false.
- Parameters:
properties (Array[MovieGraphValueViewProperty])
- Return type:
- add_property(property_name, value_type, value_type_object, metadata) bool¶
Adds a new property to the container. If a property by the given name already exists, no add operation will occur. Returns true on successful add, otherwise returns false.
- get_num_properties() int32¶
Gets the number of properties that this container holds.
- Return type:
int32
- get_value_bool(property_name) bool or None¶
Gets the bool value of the held data. Returns true on success, else false.
- get_value_byte(property_name) uint8 or None¶
Gets the byte value of the held data. Returns true on success, else false.
- Parameters:
property_name (Name)
- Returns:
out_value (uint8):
- Return type:
uint8 or None
- get_value_class(property_name) type(Class) or None¶
Gets the UClass value of the held data. Returns true on success, else false.
- get_value_container_type(property_name) MovieGraphContainerType¶
Gets the container type of the stored value.
- Parameters:
property_name (Name)
- Return type:
- get_value_double(property_name) double or None¶
Gets the double value of the held data. Returns true on success, else false.
- Parameters:
property_name (Name)
- Returns:
out_value (double):
- Return type:
double or None
- get_value_enum(property_name, requested_enum=None) uint8 or None¶
Gets the enum value (for a specific enum) of the held data. Returns true on success, else false.
- get_value_float(property_name) float or None¶
Gets the float value of the held data. Returns true on success, else false.
- get_value_int32(property_name) int32 or None¶
Gets the int32 value of the held data. Returns true on success, else false.
- Parameters:
property_name (Name)
- Returns:
out_value (int32):
- Return type:
int32 or None
- get_value_int64(property_name) int64 or None¶
Gets the int64 value of the held data. Returns true on success, else false.
- Parameters:
property_name (Name)
- Returns:
out_value (int64):
- Return type:
int64 or None
- get_value_name(property_name) Name or None¶
Gets the FName value of the held data. Returns true on success, else false.
- get_value_object(property_name, requested_class=None) Object or None¶
Gets the object value (for a specific class) of the held data. Returns true on success, else false.
- get_value_string(property_name) str or None¶
Gets the FString value of the held data. Returns true on success, else false.
- get_value_text(property_name) Text or None¶
Gets the FText value of the held data. Returns true on success, else false.
- get_value_type(property_name) MovieGraphValueType¶
Gets the type of the stored data.
- Parameters:
property_name (Name)
- Return type:
- get_value_type_object(property_name) Object¶
Gets the object that defines the enum, struct, or class.
- has_property(property_name) bool¶
Returns true if a property by the given name exists in the container, else false.
- is_valid() bool¶
Determines if this view is valid (meaning it points to a non-null property bag, and the bag is valid itself).
- Return type:
- remove_all_properties() None¶
Removes all properties and their values, effectively resetting the property bag.
- remove_property(property_name) bool¶
Removes a property by the given name. Returns true on successful remove, otherwise returns false.
- set_value_bool(property_name, value) bool¶
Sets the bool value of the held data. Returns true on success, else false.
- set_value_byte(property_name, value) bool¶
Sets the byte value of the held data. Returns true on success, else false.
- set_value_class(property_name, value) bool¶
Sets the class value of the held data. Returns true on success, else false.
- set_value_container_type(property_name, container_type) None¶
Sets the container type of the stored value.
- Parameters:
property_name (Name)
container_type (MovieGraphContainerType)
- set_value_double(property_name, value) bool¶
Sets the double value of the held data. Returns true on success, else false.
- set_value_enum(property_name, value, enum) bool¶
Sets the enum value of the held data. Returns true on success, else false.
- set_value_float(property_name, value) bool¶
Sets the float value of the held data. Returns true on success, else false.
- set_value_int32(property_name, value) bool¶
Sets the int32 value of the held data. Returns true on success, else false.
- set_value_int64(property_name, value) bool¶
Sets the int64 value of the held data. Returns true on success, else false.
- set_value_name(property_name, value) bool¶
Sets the FName value of the held data. Returns true on success, else false.
- set_value_object(property_name, value) bool¶
Sets the object value of the held data. Returns true on success, else false.
- set_value_serialized_string(property_name, new_value) bool¶
Sets the serialized value of the held data. The string should be the serialized representation of the value. Returns true on success, else false.
- set_value_string(property_name, value) bool¶
Sets the FString value of the held data. Returns true on success, else false.
- set_value_text(property_name, value) bool¶
Sets the FText value of the held data. Returns true on success, else false.
- set_value_type(property_name, value_type, value_type_object=None) None¶
Sets the type of the stored data. Enums, structs, and classes must specify a value type object.
- Parameters:
property_name (Name)
value_type (MovieGraphValueType)
value_type_object (Object)