Python :get foliage type staticMesh

Hi , gus ! I need your help !
how can i get the foliage type StaticMesh with python ? !
thank you

w = unreal.EditorLevelLibrary.get_editor_world()
foliages = unreal.GameplayStatics.get_all_actors_of_class(w, unreal.InstancedFoliageActor)
fol = foliages[0]
comps = fol.get_components_by_class(unreal.HierarchicalInstancedStaticMeshComponent)
for c in comps:
    print(c.get_instance_count())
1 Like