unreal.DataprepOperationsLibrary

class unreal.DataprepOperationsLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Dataprep Operations Library

C++ Source:

  • Plugin: DataPrepEditor
  • Module: DataprepLibraries
  • File: DataPrepOperationsLibrary.h
classmethod set_convex_decomposition_collision(selected_objects, hull_count, max_hull_verts, hull_precision) -> Array(Object)

Add complex collision on the static meshes contained in the input array by the actors contained in the input array Static meshes are not re-built after the new collision settings are set Generates an array of unique static meshes from the input array either by a cast if the UObject is a UStaticMesh or collecting the static meshes referred to if the UObject is a AActor Calls UEditorStaticMeshLibrary::SetConvexDecompositionCollisions on each static mesh of the resulting array. Note that any simple collisions on each static mesh of the resulting array will be removed.:

Parameters:
  • selected_objects (Array(Object)) –
  • hull_count (int32) – Maximum number of convex pieces that will be created. Must be positive.
  • max_hull_verts (int32) – Maximum number of vertices allowed for any generated convex hull.
  • hull_precision (int32) – Number of voxels to use when generating collision. Must be positive.
Returns:

modified_objects (Array(Object)):

Return type:

Array(Object)

classmethod set_lod_group(selected_objects) -> (lod_group_name=Name, modified_objects=Array(Object))

Remove inputs content Static meshes are not re-built after the new LOD groups are set:

Parameters:selected_objects (Array(Object)) –
Returns:lod_group_name (Name):

modified_objects (Array(Object)):

Return type:tuple
classmethod set_lods(selected_objects, reduction_options) -> Array(Object)

Generate LODs on the static meshes contained in the input array by the actors contained in the input array Static meshes are not re-built after the new LODs are set Generates an array of unique static meshes from the input array either by a cast if the UObject is a UStaticMesh or collecting the static meshes referred to if the UObject is a AActor Calls UEditorStaticMeshLibrary::SetLods on each static mesh of the resulting array.:

Parameters:
Returns:

modified_objects (Array(Object)):

Return type:

Array(Object)

classmethod set_material(selected_objects, material_substitute) → None

Set the material to all elements of a set of Static Meshes or Static Mesh Actors

Parameters:
classmethod set_mesh(selected_objects, mesh_substitute) → None

Set the mesh to all elements of a set of Actors containing StaticMeshComponents

Parameters:
  • selected_objects (Array(Object)) – Objects to set the input mesh on
  • mesh_substitute (StaticMesh) – Mesh to use
classmethod set_mobility(selected_objects, mobility_type) → None

Set mobility on a set of static mesh actors Only objects of class AStaticMeshActor will be considered:

Parameters:
  • selected_objects (Array(Object)) – Objects to set mobility on
  • mobility_type (ComponentMobility) – Type of mobility to set on selected mesh actors
classmethod set_simple_collision(selected_objects, shape_type) -> Array(Object)

Set one simple collision of the given shape type on the static meshes contained in the input array or referred to by the actors contained in the input array Static meshes are not re-built after the new collision settings are set Generates an array of unique static meshes from the input array either by a cast if the UObject is a UStaticMesh or collecting the static meshes referred to if the UObject is a AActor Calls UEditorStaticMeshLibrary::RemoveCollisions to remove any existing collisions on each static mesh of the resulting array Calls UEditorStaticMeshLibrary::AddSimpleCollisions on each static mesh of the resulting array.:

Parameters:
Returns:

modified_objects (Array(Object)):

Return type:

Array(Object)

classmethod substitute_material(selected_objects, material_search, string_match, material_substitute) → None

Replaces designated materials in all or specific content folders with specific ones A material override will be added to static mesh components if their attached static mesh uses the searched material but not themselves:

Parameters:
classmethod substitute_materials_by_table(selected_objects, data_table) → None

Replaces designated materials in all or specific content folders with requested ones SubstituteMaterial is called for each entry of the input data table:

Parameters:
classmethod substitute_mesh(selected_objects, mesh_search, string_match, mesh_substitute) → None

Replaces designated meshes in all or specific content folders with specific ones

Parameters:
classmethod substitute_meshes_by_table(selected_objects, data_table) → None

Replaces designated meshes in all or specific content folders with requested ones SubstituteMesh is called for each entry of the input data table:

Parameters: