unreal.InterchangeMeshNode

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

Bases: InterchangeBaseNode

Interchange Mesh Node

C++ Source:

  • Plugin: Interchange

  • Module: InterchangeNodes

  • File: InterchangeMeshNode.h

get_custom_bounding_box() Box or None

Query the bounding box of this mesh. Return false if the attribute was not set.

Returns:

attribute_value (Box):

Return type:

Box or None

get_custom_has_smooth_group() bool or None

Query whether this mesh has smoothing groups. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_has_vertex_binormal() bool or None

Query whether this mesh has vertex bi-normals. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_has_vertex_color() bool or None

Query whether this mesh has vertex colors. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_has_vertex_normal() bool or None

Query whether this mesh has vertex normals. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_has_vertex_tangent() bool or None

Query whether this mesh has vertex tangents. Return false if the attribute was not set.

Returns:

attribute_value (bool):

Return type:

bool or None

get_custom_polygon_count() int32 or None

Query the polygon count of this mesh. Return false if the attribute was not set.

Returns:

attribute_value (int32):

Return type:

int32 or None

get_custom_uv_count() int32 or None

Query the UV count of this mesh. Return false if the attribute was not set.

Returns:

attribute_value (int32):

Return type:

int32 or None

get_custom_vertex_count() int32 or None

Query the vertex count of this mesh. Return false if the attribute was not set.

Returns:

attribute_value (int32):

Return type:

int32 or None

get_morph_target_dependecies_count() int32

Retrieve the number of morph target dependencies for this object.

Return type:

int32

get_morph_target_dependencies() Array[str]

Retrieve all morph target dependencies for this object.

Returns:

out_dependencies (Array[str]):

Return type:

Array[str]

get_morph_target_dependency(index) str

Retrieve the specified morph target dependency for this object.

Parameters:

index (int32) –

Returns:

out_dependency (str):

Return type:

str

get_morph_target_name() str or None

Get the morph target name. Return true if we successfully retrieved the MorphTargetName attribute.

Returns:

out_morph_target_name (str):

Return type:

str or None

get_scene_instance_uid(index) str

Retrieve the asset instance this scene node refers to.

Parameters:

index (int32) –

Returns:

out_dependency (str):

Return type:

str

get_scene_instance_uids() Array[str]

Retrieve the asset instances this scene node refers to.

Returns:

out_dependencies (Array[str]):

Return type:

Array[str]

get_scene_instance_uids_count() int32

Retrieve the number of scene nodes instancing this mesh.

Return type:

int32

get_skeleton_dependecies_count() int32

Retrieve the number of skeleton dependencies for this object.

Return type:

int32

get_skeleton_dependencies() Array[str]

Retrieve the skeleton dependency for this object.

Returns:

out_dependencies (Array[str]):

Return type:

Array[str]

get_skeleton_dependency(index) str

Retrieve the specified skeleton dependency for this object.

Parameters:

index (int32) –

Returns:

out_dependency (str):

Return type:

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 specified Material dependency for a given slot of this object.

Parameters:

slot_name (str) –

Returns:

out_material_dependency (str):

Return type:

str or None

is_morph_target() bool

Return true if this node represents a morph target.

Return type:

bool

is_skinned_mesh() bool

Return true if this node represents a skinned mesh.

Return type:

bool

remove_morph_target_dependency_uid(dependency_uid) bool

Remove the specified morph target dependency from this object.

Parameters:

dependency_uid (str) –

Return type:

bool

remove_scene_instance_uid(dependency_uid) bool

Remove the specified asset instance this scene node refers to.

Parameters:

dependency_uid (str) –

Return type:

bool

remove_skeleton_dependency_uid(dependency_uid) bool

Remove the specified skeleton dependency from this object.

Parameters:

dependency_uid (str) –

Return type:

bool

remove_slot_material_dependency_uid(slot_name) bool

Remove the Material dependency associated with the given slot name from this object.

Parameters:

slot_name (str) –

Return type:

bool

set_custom_bounding_box(attribute_value) bool

Set the bounding box of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (Box) –

Return type:

bool

set_custom_has_smooth_group(attribute_value) bool

Set the smoothing group attribute of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (bool) –

Return type:

bool

set_custom_has_vertex_binormal(attribute_value) bool

Set the vertex bi-normal attribute of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (bool) –

Return type:

bool

set_custom_has_vertex_color(attribute_value) bool

Set the vertex color attribute of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (bool) –

Return type:

bool

set_custom_has_vertex_normal(attribute_value) bool

Set the vertex normal attribute of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (bool) –

Return type:

bool

set_custom_has_vertex_tangent(attribute_value) bool

Set the vertex tangent attribute of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (bool) –

Return type:

bool

set_custom_polygon_count(attribute_value) bool

Set the polygon count of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (int32) –

Return type:

bool

set_custom_uv_count(attribute_value) bool

Set the UV count attribute of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (int32) –

Return type:

bool

set_custom_vertex_count(attribute_value) bool

Set the vertex count of this mesh. Return false if the attribute could not be set.

Parameters:

attribute_value (int32) –

Return type:

bool

set_morph_target(is_morph_target) bool

Set the IsMorphTarget attribute to determine whether this node represents a morph target.

Parameters:

is_morph_target (bool) –

Return type:

bool

set_morph_target_dependency_uid(dependency_uid) bool

Add the specified morph target dependency to this object.

Parameters:

dependency_uid (str) –

Return type:

bool

set_morph_target_name(morph_target_name) bool

Set the MorphTargetName attribute to determine the name of the morph target.

Parameters:

morph_target_name (str) –

Return type:

bool

set_pay_load_key(pay_load_key, pay_load_type) None

Set Pay Load Key

Parameters:
set_scene_instance_uid(dependency_uid) bool

Add the specified asset instance this scene node refers to.

Parameters:

dependency_uid (str) –

Return type:

bool

set_skeleton_dependency_uid(dependency_uid) bool

Add the specified skeleton dependency to this object.

Parameters:

dependency_uid (str) –

Return type:

bool

set_skinned_mesh(is_skinned_mesh) bool

Set the IsSkinnedMesh attribute to determine whether this node represents a skinned mesh.

Parameters:

is_skinned_mesh (bool) –

Return type:

bool

set_slot_material_dependency_uid(slot_name, material_dependency_uid) bool

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

Parameters:
  • slot_name (str) –

  • material_dependency_uid (str) –

Return type:

bool