unreal.EditorSkeletalMeshLibrary

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

Bases: unreal.BlueprintFunctionLibrary

Utility class to altering and analyzing a SkeletalMesh and use the common functionalities of the SkeletalMesh Editor. The editor should not be in play in editor mode.

C++ Source:

  • Plugin: EditorScriptingUtilities
  • Module: EditorScriptingUtilities
  • File: EditorSkeletalMeshLibrary.h
classmethod get_num_verts(skeletal_mesh, lod_index) → int32

Get number of mesh vertices for an LOD of a Skeletal Mesh

Parameters:
  • skeletal_mesh (SkeletalMesh) – Mesh to get number of vertices from.
  • lod_index (int32) – Index of the mesh LOD.
Returns:

Number of vertices. Returns 0 if invalid mesh or LOD index.

Return type:

int32

classmethod regenerate_lod(skeletal_mesh, new_lod_count=0, regenerate_even_if_imported=False, generate_base_lod=False) → bool

Regenerate LODs of the mesh

Parameters:
  • skeletal_mesh (SkeletalMesh) – The mesh that will regenerate LOD
  • new_lod_count (int32) – Set valid value (>0) if you want to change LOD count. Otherwise, it will use the current LOD and regenerate
  • regenerate_even_if_imported (bool) – If this is true, it only regenerate even if this LOD was imported before If false, it will regenerate for only previously auto generated ones
  • generate_base_lod (bool) – If this is true and there is some reduction data, the base LOD will be reduce according to the settings
Returns:

true if succeed. If mesh reduction is not available this will return false.

Return type:

bool