unreal.DatasmithGLTFImportOptions

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

Bases: unreal.DatasmithOptionsBase

Datasmith GLTFImport Options

C++ Source:

  • Plugin: DatasmithGLTFImporter

  • Module: DatasmithGLTFTranslator

  • File: DatasmithGLTFImportOptions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • animation_frame_rate_from_file (bool): [Read-Write] Animation Frame Rate from File: Use animation frame rate from source (as it was exported). If unchecked, animations are resampled with 30 FPS.

  • generate_lightmap_u_vs (bool): [Read-Write] Generate Lightmap UVs: Generate new UV coordinates for lightmapping instead of using the highest index UV set. Turn this on to have Unreal Studio generate lightmap UV sets automatically. Turn this off to try using the highest index existing UV set (if available) as the lightmap UV set. For both cases, geometry without existing UV sets will receive an empty UV set, which will by itself not be valid for use with Lightmass.

  • import_scale (float): [Read-Write] Import Scale: Scale factor used for importing assets, by default: 100, for conversion from meters(glTF) to centimeters(Unreal default).

property animation_frame_rate_from_file

[Read-Write] Animation Frame Rate from File: Use animation frame rate from source (as it was exported). If unchecked, animations are resampled with 30 FPS.

Type

(bool)

property generate_lightmap_u_vs

[Read-Write] Generate Lightmap UVs: Generate new UV coordinates for lightmapping instead of using the highest index UV set. Turn this on to have Unreal Studio generate lightmap UV sets automatically. Turn this off to try using the highest index existing UV set (if available) as the lightmap UV set. For both cases, geometry without existing UV sets will receive an empty UV set, which will by itself not be valid for use with Lightmass.

Type

(bool)

property import_scale

[Read-Write] Import Scale: Scale factor used for importing assets, by default: 100, for conversion from meters(glTF) to centimeters(Unreal default).

Type

(float)