unreal.InterchangeMeshFactoryNode¶
- class unreal.InterchangeMeshFactoryNode(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
InterchangeFactoryBaseNodenamespace Interchange
C++ Source:
Plugin: Interchange
Module: InterchangeFactoryNodes
File: InterchangeMeshFactoryNode.h
- 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.
- 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.
- 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.
- 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.
- 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.
- get_assembly_part_dependencies() Map[str, str]¶
Retrieve the Nanite assembly part dependencies for this object.
- 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_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.
- 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.
- 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.
- get_slot_material_dependencies() Map[str, str]¶
Retrieve the correspondence table between slot names and assigned materials for this object.
- get_slot_material_dependency_uid(slot_name) str or None¶
Retrieve the Material dependency for the specified slot of this object.
- remove_assembly_part_dependency_uid(mesh_uid) bool¶
Remove a Nanite assembly part dependency associated with this object
- remove_slot_material_dependency_uid(slot_name) bool¶
Remove the Material dependency associated with the specified slot name of this object.
- set_assembly_part_dependency_uid(mesh_uid, assembly_part_dependency_uid) bool¶
Add a Nanite assembly part dependency to this object.
- 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.
- set_custom_import_sockets(attribute_value) bool¶
Set whether the mesh factory should create sockets.
- set_custom_keep_sections_separate(attribute_value) bool¶
Set whether sections with matching materials are kept separate and will not get combined.
- set_custom_lod_group(attribute_value, add_apply_delegate=True) bool¶
Set a custom LOD group for the mesh.
- 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.
- set_custom_recompute_tangents(attribute_value, add_apply_delegate=True) bool¶
Set whether tangents in the imported mesh are ignored and recomputed.
- set_custom_remove_degenerates(attribute_value, add_apply_delegate=True) bool¶
Set whether degenerate triangles are removed.
- 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.
- set_custom_use_full_precision_u_vs(attribute_value, add_apply_delegate=True) bool¶
Set whether UVs are stored at full floating point precision.
- 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.
- 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.
- 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.
- 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.