unreal.MovieSceneSectionExtensions

class unreal.MovieSceneSectionExtensions(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Function library containing methods that should be hoisted onto UMovieSceneSections for scripting

C++ Source:

  • Plugin: SequencerScripting

  • Module: SequencerScripting

  • File: MovieSceneSectionExtensions.h

classmethod get_all_channels(section) Array[MovieSceneScriptingChannel]

Find all channels that belong to the specified UMovieSceneSection. Some sections have many channels (such as Transforms containing 9 double channels to represent Translation/Rotation/Scale), and a section may have mixed channel types.

Parameters:

section (MovieSceneSection) – The section to use.

Returns:

An array containing any key channels that match the type specified

Return type:

Array[MovieSceneScriptingChannel]

classmethod get_auto_size_end_frame(section) int32

Get end frame of the AutoSize. Will throw an exception if section has no end frame, use GetAutoSizeHasEndFrame to check first.

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

The end frame of the AutoSize data.

Return type:

int32

classmethod get_auto_size_end_frame_seconds(section) float

Get end time of the AutoSize seconds. Will throw an exception if section has no end frame, use GetAutoSizeHasEndFrame to check first.

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

The end frame of the AutoSize data in seconds.

Return type:

float

classmethod get_auto_size_has_end_frame(section) bool

Checks to see if this section has an AutoSize implementation, and if so, if that implementation has a end frame.

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

Whether this section has a valid autosize range, and a valid end frame

Return type:

bool

classmethod get_auto_size_has_start_frame(section) bool

Checks to see if this section has an AutoSize implementation, and if so, if that implementation has a start frame.

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

Whether this section has a valid autosize range, and a valid start frame

Return type:

bool

classmethod get_auto_size_start_frame(section) int32

Get start frame of the AutoSize. Will throw an exception if section has no start frame, use GetAutoSizeHasStartFrame to check first.

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

The start frame of the AutoSize data.

Return type:

int32

classmethod get_auto_size_start_frame_seconds(section) float

Get start time of the AutoSize in seconds. Will throw an exception if section has no start frame, use GetAutoSizeHasStartFrame to check first.

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

The start frame of the AutoSize data in seconds.

Return type:

float

classmethod get_channel(section, channel_name) MovieSceneScriptingChannel

Get channel from specified section and channel name

Parameters:
Returns:

The channel if it exists

Return type:

MovieSceneScriptingChannel

classmethod get_channels_by_type(section, channel_type) Array[MovieSceneScriptingChannel]

Find all channels that belong to the specified UMovieSceneSection that match the specific type. This will filter out any children who do not inherit from the specified type for you.

Parameters:
Returns:

An array containing any key channels that match the type specified

Return type:

Array[MovieSceneScriptingChannel]

classmethod get_end_frame(section) int32

Get end frame. Will throw an exception if section has no end frame, use HasEndFrame to check first.

Parameters:

section (MovieSceneSection) – The section within which to get the end frame

Returns:

End frame of this section

Return type:

int32

classmethod get_end_frame_seconds(section) float

Get end time in seconds. Will throw an exception if section has no end frame, use HasEndFrame to check first.

Parameters:

section (MovieSceneSection) – The section within which to get the end time

Returns:

End time of this section

Return type:

float

classmethod get_parent_sequence_frame(section, frame, parent_sequence) int32

Get the frame in the space of its parent sequence

Parameters:
  • section (MovieSceneSubSection) – The section that the InFrame is local to

  • frame (int32) – The desired local frame

  • parent_sequence (MovieSceneSequence) – The parent sequence to traverse from

Returns:

The frame at the parent sequence

Return type:

int32

classmethod get_start_frame(section) int32

Get start frame. Will throw an exception if section has no start frame, use HasStartFrame to check first.

Parameters:

section (MovieSceneSection) – The section within which to get the start frame

Returns:

Start frame of this section

Return type:

int32

classmethod get_start_frame_seconds(section) float

Get start time in seconds. Will throw an exception if section has no start frame, use HasStartFrame to check first.

Parameters:

section (MovieSceneSection) – The section within which to get the start time

Returns:

Start time of this section

Return type:

float

classmethod has_end_frame(section) bool

Has end frame

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

Whether this section has a valid end frame (else infinite)

Return type:

bool

classmethod has_start_frame(section) bool

Has start frame

Parameters:

section (MovieSceneSection) – The section being queried

Returns:

Whether this section has a valid start frame (else infinite)

Return type:

bool

classmethod set_end_frame(section, end_frame) None

Set end frame

Parameters:
  • section (MovieSceneSection) – The section within which to set the end frame

  • end_frame (int32) – The desired start frame for this section

classmethod set_end_frame_bounded(section, is_bounded) None

Set end frame bounded

Parameters:
  • section (MovieSceneSection) – The section to set whether the end frame is bounded or not

  • is_bounded (bool) –

classmethod set_end_frame_seconds(section, end_time) None

Set end time in seconds

Parameters:
  • section (MovieSceneSection) – The section within which to set the end time

  • end_time (float) – The desired end time for this section

classmethod set_range(section, start_frame, end_frame) None

Set range

Parameters:
  • section (MovieSceneSection) – The section within which to set the range

  • start_frame (int32) – The desired start frame for this section

  • end_frame (int32) – The desired end frame for this section

classmethod set_range_seconds(section, start_time, end_time) None

Set range in seconds

Parameters:
  • section (MovieSceneSection) – The section within which to set the range

  • start_time (float) – The desired start frame for this section

  • end_time (float) – The desired end frame for this section

classmethod set_start_frame(section, start_frame) None

Set start frame

Parameters:
  • section (MovieSceneSection) – The section within which to set the start frame

  • start_frame (int32) – The desired start frame for this section

classmethod set_start_frame_bounded(section, is_bounded) None

Set start frame bounded

Parameters:
  • section (MovieSceneSection) – The section to set whether the start frame is bounded or not

  • is_bounded (bool) –

classmethod set_start_frame_seconds(section, start_time) None

Set start time in seconds

Parameters:
  • section (MovieSceneSection) – The section within which to set the start time

  • start_time (float) – The desired start time for this section