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

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_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_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_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 specfied slot name of this object.

Parameters:

slot_name (str) –

Return type:

bool

reset_slot_material_dependencies() bool

Reset all the material dependencies.

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_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