unreal.InterchangeMeshFactoryNode

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

Bases: InterchangeFactoryBaseNode

namespace Interchange

C++ Source:

  • Plugin: Interchange

  • Module: InterchangeFactoryNodes

  • File: InterchangeMeshFactoryNode.h

add_lod_data_unique_id(lod_data_unique_id) bool

Add Lod Data Unique Id

Parameters:

lod_data_unique_id (str)

Return type:

bool

add_payload_key_boolean_attribute(payload_attribute_key, value) bool

Add a boolean attribute for the payload. Returns false if the attribute does not exist or if it cannot be added.

Parameters:
  • payload_attribute_key (str)

  • value (bool)

Return type:

bool

add_payload_key_double_attribute(payload_attribute_key, value) bool

Add a double attribute for the payload. Returns false if the attribute does not exist or if it cannot be added.

Parameters:
  • payload_attribute_key (str)

  • value (double)

Return type:

bool

add_payload_key_float_attribute(payload_attribute_key, value) bool

Add a float attribute for the payload. Returns false if the attribute does not exist or if it cannot be added.

Parameters:
  • payload_attribute_key (str)

  • value (float)

Return type:

bool

add_payload_key_int32_attribute(payload_attribute_key, value) bool

Add an int attribute for the payload. Returns false if the attribute does not exist or if it cannot be added.

Parameters:
  • payload_attribute_key (str)

  • value (int32)

Return type:

bool

add_payload_key_string_attribute(payload_attribute_key, value) bool

Add a string attribute for the payload. Returns false if the attribute does not exist or if it cannot be added.

Parameters:
  • payload_attribute_key (str)

  • value (str)

Return type:

bool

get_assembly_part_dependencies() Map[str, str]

Retrieve the Nanite assembly part dependencies for this object.

Returns:

out_assembly_part_dependencies (Map[str, str]):

Return type:

Map[str, str]

get_assembly_part_dependencies_count() int32

Retrieve the number of Nanite assembly part dependencies for this object.

Return type:

int32

get_custom_compute_weighted_normals() bool or None

Query whether normals are recomputed by weighting the surface area and the corner angle of the triangle as a ratio.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_import_sockets() bool or None

Query whether the mesh factory should create sockets.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_keep_sections_separate() bool or None

Query whether sections with matching materials are kept separate and will not get combined.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_lod_group() Name or None

Query whether a custom LOD group is set for the mesh.

Returns:

attribute_value (Name):

Return type:

Name or None

get_custom_recompute_normals() bool or None

Query whether normals in the imported mesh are ignored and recomputed. When normals are recomputed, the tangents are also recomputed.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_recompute_tangents() bool or None

Query whether tangents in the imported mesh are ignored and recomputed.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_remove_degenerates() bool or None

Query whether degenerate triangles are removed.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_use_backwards_compatible_f16_trunc_u_vs() bool or None

Query whether UVs are converted to 16-bit by a legacy truncation process instead of the default rounding process. This may avoid differences when reimporting older content.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_use_full_precision_u_vs() bool or None

Query whether UVs are stored at full floating point precision.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_use_high_precision_tangent_basis() bool or None

Query whether tangents are stored at 16-bit precision instead of the default 8-bit precision.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_use_mikk_t_space() bool or None

Query whether tangents are recomputed using MikkTSpace when they need to be recomputed.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_vertex_color_ignore() bool or None

Query whether the static mesh factory should ignore the vertex color. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_vertex_color_override() Color or None

Query whether the static mesh factory should override the vertex color. Return false if the attribute was not set.

Returns:

attribute_value (Color):

Return type:

Color or None

get_custom_vertex_color_replace() bool or None

Query whether the static mesh factory should replace the vertex color. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_lod_data_count() int32

Return the number of LODs this static mesh has.

Return type:

int32

get_lod_data_unique_ids() Array[str]

Get Lod Data Unique Ids

Returns:

out_lod_data_unique_ids (Array[str]):

Return type:

Array[str]

get_payload_key_boolean_attribute(payload_attribute_key) bool or None

Get a payload key boolean attribute from this node. Returns false if the attribute does not exist.

Parameters:

payload_attribute_key (str)

Returns:

value (bool):

Return type:

bool or None

get_payload_key_double_attribute(payload_attribute_key) double or None

Get a payload key double attribute from this node. Returns false if the attribute does not exist.

Parameters:

payload_attribute_key (str)

Returns:

value (double):

Return type:

double or None

get_payload_key_float_attribute(payload_attribute_key) float or None

Get a payload key float attribute from this node. Returns false if the attribute does not exist.

Parameters:

payload_attribute_key (str)

Returns:

value (float):

Return type:

float or None

get_payload_key_int32_attribute(payload_attribute_key) int32 or None

Get a payload key int32 attribute from this node. Returns false if the attribute does not exist.

Parameters:

payload_attribute_key (str)

Returns:

value (int32):

Return type:

int32 or None

get_payload_key_string_attribute(payload_attribute_key) str or None

Get a payload key string attribute from this node. Returns false if the attribute does not exist.

Parameters:

payload_attribute_key (str)

Returns:

value (str):

Return type:

str or None

get_slot_material_dependencies() Map[str, str]

Retrieve the correspondence table between slot names and assigned materials for this object.

Returns:

out_material_dependencies (Map[str, str]):

Return type:

Map[str, str]

get_slot_material_dependency_uid(slot_name) str or None

Retrieve the Material dependency for the specified slot of this object.

Parameters:

slot_name (str)

Returns:

out_material_dependency (str):

Return type:

str or None

remove_assembly_part_dependency_uid(mesh_uid) bool

Remove a Nanite assembly part dependency associated with this object

Parameters:

mesh_uid (str)

Return type:

bool

remove_lod_data_unique_id(lod_data_unique_id) bool

Remove Lod Data Unique Id

Parameters:

lod_data_unique_id (str)

Return type:

bool

remove_slot_material_dependency_uid(slot_name) bool

Remove the Material dependency associated with the specified slot name of this object.

Parameters:

slot_name (str)

Return type:

bool

reset_assembly_dependencies() bool

Reset all the Nanite assembly dependencies.

Return type:

bool

reset_slot_material_dependencies() bool

Reset all the material dependencies.

Return type:

bool

set_assembly_part_dependency_uid(mesh_uid, assembly_part_dependency_uid) bool

Add a Nanite assembly part dependency to this object.

Parameters:
  • mesh_uid (str)

  • assembly_part_dependency_uid (str)

Return type:

bool

set_custom_compute_weighted_normals(attribute_value, add_apply_delegate=True) bool

Set whether normals are recomputed by weighting the surface area and the corner angle of the triangle as a ratio.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_import_sockets(attribute_value) bool

Set whether the mesh factory should create sockets.

Parameters:

attribute_value (bool)

Return type:

bool

set_custom_keep_sections_separate(attribute_value) bool

Set whether sections with matching materials are kept separate and will not get combined.

Parameters:

attribute_value (bool)

Return type:

bool

set_custom_lod_group(attribute_value, add_apply_delegate=True) bool

Set a custom LOD group for the mesh.

Parameters:
  • attribute_value (Name)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_recompute_normals(attribute_value, add_apply_delegate=True) bool

Set whether normals in the imported mesh are ignored and recomputed. When normals are recomputed, the tangents are also recomputed.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_recompute_tangents(attribute_value, add_apply_delegate=True) bool

Set whether tangents in the imported mesh are ignored and recomputed.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_remove_degenerates(attribute_value, add_apply_delegate=True) bool

Set whether degenerate triangles are removed.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_use_backwards_compatible_f16_trunc_u_vs(attribute_value, add_apply_delegate=True) bool

Set whether UVs are converted to 16-bit by a legacy truncation process instead of the default rounding process. This may avoid differences when reimporting older content.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_use_full_precision_u_vs(attribute_value, add_apply_delegate=True) bool

Set whether UVs are stored at full floating point precision.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_use_high_precision_tangent_basis(attribute_value, add_apply_delegate=True) bool

Set whether tangents are stored at 16-bit precision instead of the default 8-bit precision.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_use_mikk_t_space(attribute_value, add_apply_delegate=True) bool

Set whether tangents are recomputed using MikkTSpace when they need to be recomputed.

Parameters:
  • attribute_value (bool)

  • add_apply_delegate (bool)

Return type:

bool

set_custom_vertex_color_ignore(attribute_value) bool

Set whether the static mesh factory should ignore the vertex color. Return false if the attribute could not be set.

Parameters:

attribute_value (bool)

Return type:

bool

set_custom_vertex_color_override(attribute_value) bool

Set whether the static mesh factory should override the vertex color. Return false if the attribute could not be set.

Parameters:

attribute_value (Color)

Return type:

bool

set_custom_vertex_color_replace(attribute_value) bool

Set whether the static mesh factory should replace the vertex color. Return false if the attribute could not be set.

Parameters:

attribute_value (bool)

Return type:

bool

set_slot_material_dependency_uid(slot_name, material_dependency_uid) bool

Add a Material dependency to the specified slot of this object.

Parameters:
  • slot_name (str)

  • material_dependency_uid (str)

Return type:

bool