unreal.DataprepSubstituteMaterialOperation

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

Bases: DataprepOperation

On each static mesh or actor to process, replace the material matching the criteria with the specified one

C++ Source:

  • Plugin: DataprepEditor

  • Module: DataprepLibraries

  • File: DataprepOperations.h

Editor Properties: (see get_editor_property/set_editor_property)

  • material_search (str): [Read-Write] Name of the material(s) to search for. Wildcard is supported

  • material_substitute (MaterialInterface): [Read-Write] Material to use as a substitute

  • string_match (EditorScriptingStringMatchType): [Read-Write] Type of matching to perform with MaterialSearch string

[Read-Write] Name of the material(s) to search for. Wildcard is supported

Type:

(str)

property material_substitute: MaterialInterface

[Read-Write] Material to use as a substitute

Type:

(MaterialInterface)

property string_match: EditorScriptingStringMatchType

[Read-Write] Type of matching to perform with MaterialSearch string

Type:

(EditorScriptingStringMatchType)