unreal.DatasmithC4DImportOptions

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

Bases: unreal.Object

UENUM() enum class EC4DUVGeneration : uint8 {

Keep, Missing, Always,

};

C++ Source:

  • Plugin: DatasmithC4DImporter
  • Module: DatasmithC4DImporter
  • File: DatasmithC4DImportOptions.h

Editor Properties: (see get_editor_property/set_editor_property)

  • always_generate_normals (bool): [Read-Write] Ignore the normals provided by Melange and let Datasmith generate them The “if (RawNormal.SizeSquared() < SMALL_NUMBER)” check in see FDatasmithMeshUtils::ToMeshDescription is preventing some meshes to load
  • export_to_u_datasmith (bool): [Read-Write] Export the imported scene as a .datasmith file, next to the .c4d file.
  • import_empty_mesh (bool): [Read-Write] Import Mesh With No Vertex, false by default
  • optimize_empty_single_child_actors (bool): [Read-Write] Remove empty actors that have only one child, false by default
  • scale_vertices (float): [Read-Write] Scale all position and vertices by this value. It is needed when scene has too precise meshes because the conversion from double (C4D) to float (UE4) can “degenerate” the faces
always_generate_normals

(bool) – [Read-Write] Ignore the normals provided by Melange and let Datasmith generate them The “if (RawNormal.SizeSquared() < SMALL_NUMBER)” check in see FDatasmithMeshUtils::ToMeshDescription is preventing some meshes to load

export_to_u_datasmith

(bool) – [Read-Write] Export the imported scene as a .datasmith file, next to the .c4d file.

import_empty_mesh

(bool) – [Read-Write] Import Mesh With No Vertex, false by default

optimize_empty_single_child_actors

(bool) – [Read-Write] Remove empty actors that have only one child, false by default

scale_vertices

(float) – [Read-Write] Scale all position and vertices by this value. It is needed when scene has too precise meshes because the conversion from double (C4D) to float (UE4) can “degenerate” the faces