unreal.MovieSceneMaterialTrackExtensions¶
- class unreal.MovieSceneMaterialTrackExtensions(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryFunction library containing methods that should be hoisted onto UMovieSceneMaterialTrack for scripting
C++ Source:
Plugin: SequencerScripting
Module: SequencerScripting
File: MovieSceneMaterialTrackExtensions.h
- classmethod get_material_index(track) int32¶
Get material index of the component that is animated by the material track.
- Parameters:
track (MovieSceneComponentMaterialTrack) – The track to use
- Returns:
The material index.
- Return type:
int32
- classmethod set_material_index(track, material_index) None¶
Set material index of the component that is animated by the material track.
- Parameters:
track (MovieSceneComponentMaterialTrack) – The track to use
material_index (int32) – The desired material index to animate. Values of < 0 or >= NumMaterials will be silently ignored and evaluation will fail.