unreal.DataprepFilterLibrary
¶
- class unreal.DataprepFilterLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibrary
Dataprep Filter Library
C++ Source:
Plugin: DataprepEditor
Module: DataprepLibraries
File: DataprepFilterLibrary.h
- classmethod filter_by_class(target_array, object_class)¶
Filter the array based on the Object’s class.
- classmethod filter_by_name(target_array, name_sub_string, string_match=EditorScriptingStringMatchType.CONTAINS)¶
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)¶
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