unreal.DataprepFilterLibrary
¶
- class unreal.DataprepFilterLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibrary
Dataprep Filter Library
C++ Source:
Plugin: DataprepEditor
Module: DataprepLibraries
File: DataprepFilterLibrary.h
- classmethod filter_by_class(target_array, object_class) Array[Object] ¶
Filter the array based on the Object’s class.
- classmethod filter_by_name(target_array, name_sub_string, string_match=EditorScriptingStringMatchType.CONTAINS) Array[Object] ¶
Filter the array based on the Object name.
- Parameters:
target_array (Array[Object]) – Array of Object to filter. The array will not change.
name_sub_string (str) – The name to filter with.
string_match (EditorScriptingStringMatchType) – Contains the NameSubString OR matches with the wildcard *? OR exactly the same value.
- Returns:
The filtered list.
- Return type:
- classmethod filter_by_size(target_array, size_source, filter_mode, threshold) Array[Object] ¶
Filter the array based on the geometry size.
- Parameters:
target_array (Array[Object]) – Array of Actors or StaticMeshes to filter. The array will not change.
size_source (DataprepSizeSource) – The reference dimension
filter_mode (DataprepSizeFilterMode) – How to compare the object size with the threshold
threshold (float) – Limit value
- Returns:
The filtered list.
- Return type: