unreal.DatasmithStaticMeshLibrary

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

Bases: BlueprintFunctionLibrary

Datasmith Static Mesh Blueprint Library

C++ Source:

  • Plugin: DatasmithImporter

  • Module: DatasmithImporter

  • File: DatasmithBlueprintLibrary.h

classmethod compute_lightmap_resolution(objects, apply_changes, ideal_ratio=0.200000) None

Sets the proper lightmap resolution to get the desired lightmap density ratio

Parameters:
  • objects (Array[Object]) – List of static meshes and static mesh actors to update.

  • apply_changes (bool) – Indicates if changes must be apply or not.

  • ideal_ratio (float) – The desired lightmap density ratio

classmethod setup_static_lighting(objects, apply_changes, generate_lightmap_u_vs, lightmap_resolution_ideal_ratio=0.200000) None

Setup the Lightmap UVs settings to enable or disable the lightmap generation on the static meshes found in the Assets list

Parameters:
  • objects (Array[Object]) –

  • apply_changes (bool) – Indicates if changes must be apply or not.

  • generate_lightmap_u_vs (bool) – The value to set for the generate lightmap uvs flag.

  • lightmap_resolution_ideal_ratio (float) – The desired lightmap density ratio