unreal.SequenceCameraShake

class unreal.SequenceCameraShake(outer=None, name='None')

Bases: unreal.CameraShakeBase

A camera shake that plays a sequencer animation.

C++ Source:

  • Plugin: TemplateSequence

  • Module: TemplateSequence

  • File: SequenceCameraShake.h

Editor Properties: (see get_editor_property/set_editor_property)

  • blend_in_time (float): [Read-Write] Linear blend-in time.

  • blend_out_time (float): [Read-Write] Linear blend-out time.

  • play_rate (float): [Read-Write] Scalar defining how fast to play the anim.

  • random_segment (bool): [Read-Write] When true, plays a random snippet of the sequence for RandomSegmentDuration seconds. The sequence we be forced to loop when bRandomSegment is enabled, in case the duration is longer than what’s left to play from the random start time.:

  • random_segment_duration (float): [Read-Write] When bRandomSegment is true, defines how long the sequence should play.

  • scale (float): [Read-Write] Scalar defining how “intense” to play the anim.

  • sequence (CameraAnimationSequence): [Read-Write] Source camera animation sequence to play.

  • shake_scale (float): [Read-Write] The overall scale to apply to the shake. Only valid when the shake is active.

  • single_instance (bool): [Read-Write] If true to only allow a single instance of this shake class to play at any given time. Subsequent attempts to play this shake will simply restart the timer.