unreal.ProceduralDaySequenceBuilder¶
- class unreal.ProceduralDaySequenceBuilder(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectA utility class for creating procedural Day Sequences. Before adding any keys, SetActiveBoundObject should be called and provided a Day Sequence Actor or a component owned by a Day Sequence Actor. All time values are currently normalized to the range [0, 1], inclusive on both ends. A time of 1 is handled as a special case and maps to the final frame. This class assumes the target Day Sequence Actor will stay alive and that users will keep the generated sequence alive, it manages no lifetimes.
Consider using FProceduralDaySequence instead of using this class directly.
C++ Source:
Plugin: DaySequence
Module: DaySequence
File: ProceduralDaySequenceBuilder.h
- add_color_material_parameter_override(parameter_name, material_index, value) None¶
Add Color Material Parameter Override
- Parameters:
parameter_name (Name)
material_index (int32)
value (LinearColor)
- add_color_override(property_name, value) None¶
Add Color Override
- Parameters:
property_name (Name)
value (LinearColor)
- add_material_override(material_index, value) None¶
Add Material Override
- Parameters:
material_index (int32)
value (MaterialInterface)
- add_rotation_key(key, value, interp_mode=RichCurveInterpMode.RCIM_CUBIC) None¶
Add Rotation Key
- Parameters:
key (float)
value (Rotator)
interp_mode (RichCurveInterpMode)
- add_scalar_key(property_name, key, value, interp_mode=RichCurveInterpMode.RCIM_CUBIC) None¶
Add Scalar Key
- Parameters:
property_name (Name)
key (float)
value (double)
interp_mode (RichCurveInterpMode)
- add_scalar_material_parameter_override(parameter_name, material_index, value) None¶
Add Scalar Material Parameter Override
- add_scalar_override(property_name, value) None¶
Add Scalar Override
- Parameters:
property_name (Name)
value (double)
- add_scale_key(key, value, interp_mode=RichCurveInterpMode.RCIM_CUBIC) None¶
Add Scale Key
- Parameters:
key (float)
value (Vector)
interp_mode (RichCurveInterpMode)
- add_translation_key(key, value, interp_mode=RichCurveInterpMode.RCIM_CUBIC) None¶
Add Translation Key
- Parameters:
key (float)
value (Vector)
interp_mode (RichCurveInterpMode)
- add_vector_key(property_name, key, value, interp_mode=RichCurveInterpMode.RCIM_CUBIC) None¶
Add Vector Key
- Parameters:
property_name (Name)
key (float)
value (Vector)
interp_mode (RichCurveInterpMode)
- initialize(actor, initial_sequence=None, clear_initial_sequence=True) DaySequence¶
Initialize the procedural sequence and set the TargetActor for this builder.
- Parameters:
actor (DaySequenceActor) – The target DaySequenceActor that will be animated by the generated sequence.
initial_sequence (DaySequence) – Optional sequence that this builder can operate on instead of allocating a new sequence.
clear_initial_sequence (bool) – If true, calls ClearKeys().
- Returns:
The sequence which will be modified when calling SetActiveBoundObject and the Add*Key(s) functions.
- Return type: