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.
- get_morph_target_dependency(index) str ¶
Retrieve the specified morph target dependency for this object.
- Parameters:
index (int32) –
- Returns:
out_dependency (str):
- Return type:
- 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:
- 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_dependency(index) str ¶
Retrieve the specified skeleton dependency for this object.
- Parameters:
index (int32) –
- Returns:
out_dependency (str):
- Return type:
- 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 specified Material dependency for a given slot of this object.
- remove_morph_target_dependency_uid(dependency_uid) bool ¶
Remove the specified morph target dependency from this object.
- remove_scene_instance_uid(dependency_uid) bool ¶
Remove the specified asset instance this scene node refers to.
- remove_skeleton_dependency_uid(dependency_uid) bool ¶
Remove the specified skeleton dependency from this object.
- remove_slot_material_dependency_uid(slot_name) bool ¶
Remove the Material dependency associated with the given slot name from this object.
- set_custom_bounding_box(attribute_value) bool ¶
Set the bounding box of this mesh. Return false if the attribute could not be set.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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:
- 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:
- 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:
- set_morph_target(is_morph_target) bool ¶
Set the IsMorphTarget attribute to determine whether this node represents a morph target.
- set_morph_target_dependency_uid(dependency_uid) bool ¶
Add the specified morph target dependency to this object.
- set_morph_target_name(morph_target_name) bool ¶
Set the MorphTargetName attribute to determine the name of the morph target.
- set_pay_load_key(pay_load_key, pay_load_type) None ¶
Set Pay Load Key
- Parameters:
pay_load_key (str) –
pay_load_type (InterchangeMeshPayLoadType) –
- set_scene_instance_uid(dependency_uid) bool ¶
Add the specified asset instance this scene node refers to.
- set_skeleton_dependency_uid(dependency_uid) bool ¶
Add the specified skeleton dependency to this object.