unreal.DatasmithMeshActorElement
¶
-
class
unreal.
DatasmithMeshActorElement
(outer=None, name='None')¶ Bases:
unreal.DatasmithActorElement
UDatasmithMeshActorElement
C++ Source:
Plugin: DatasmithImporter
Module: DatasmithImporter
File: DatasmithUObjectElements.h
-
add_material_override
(material) → None¶ Adds a new material to the Actor Element
- Parameters
material (DatasmithMaterialIDElement) –
-
get_bounding_box_size
() → Vector¶ Get the Bounding Box of the Actor as a Vector. X is Width, Y is Height, Z is Depth. The value will are taken from the MeshElement and are factored by the Actor Scale. Bounding Box size can only be calculated if the Mesh can be found.
- Returns
- Return type
-
get_material_overrides_count
() → int32¶ Get the amount of materials on this mesh
- Returns
- Return type
int32
-
get_materials
()¶ Get the i-th material of this actor
- Returns
- Return type
-
get_mesh_element
() → DatasmithMeshElement¶ Get the Datasmith MeshElement associated with the actor. The Mesh can be a direct reference to an Unreal Mesh. If it’s the case it will return an invalid MeshElement.
- Returns
- Return type
-
get_static_mesh_path_name
() → str¶ Get the path name of the StaticMesh associated with the actor
- Returns
- Return type
-
remove_material_override
(material) → None¶ Get the amount of materials on this mesh
- Parameters
material (DatasmithMaterialIDElement) –