unreal.DataprepSetupStaticLightingOperation

class unreal.DataprepSetupStaticLightingOperation(outer: Optional[Object] = None, name: Union[Name, str] = 'None')

Bases: DataprepOperation

For each static mesh to process, setup the settings to enable lightmap UVs generation and compute the lightmap resolution.

C++ Source:

  • Plugin: DatasmithImporter

  • Module: DatasmithImporter

  • File: DatasmithDataprepOperation.h

Editor Properties: (see get_editor_property/set_editor_property)

  • enable_lightmap_uv_generation (bool): [Read-Write] Enable Lightmap UVGeneration: Enable the lightmap UV generation.

  • lightmap_resolution_ideal_ratio (float): [Read-Write] Lightmap Resolution Ideal Ratio: The ratio used to compute the resolution of the lightmap.

property enable_lightmap_uv_generation: bool

[Read-Write] Enable Lightmap UVGeneration: Enable the lightmap UV generation.

Type:

(bool)

property lightmap_resolution_ideal_ratio: float

[Read-Write] Lightmap Resolution Ideal Ratio: The ratio used to compute the resolution of the lightmap.

Type:

(float)