Hey to everyone, I’m looking for your help!
By C++ I can get triangle count of LOD with GetNumTriangles()
How can I get the same with Python?
Hey to everyone, I’m looking for your help!
By C++ I can get triangle count of LOD with GetNumTriangles()
How can I get the same with Python?
no answer to this? im also interested
In UE5 I am using the geometry script plugin:
import unreal
sm = unreal.EditorAssetLibrary.load_asset('/Game/...')
asset_options = unreal.GeometryScriptCopyMeshFromAssetOptions()
requested_lod = unreal.GeometryScriptMeshReadLOD()
dm = unreal.DynamicMesh()
unreal.GeometryScript_AssetUtils.copy_mesh_from_static_mesh(sm, dm, asset_options, requested_lod)
print("With geometry script: " + str(dm.get_triangle_count() ))
You can vertices count using that method
smes = unreal.get_editor_subsystem(unreal.StaticMeshEditorSubsystem)
print("with static mesh editor subsystem: " + str(smes.get_number_verts(sm,0)))