/
Manifest
/
Real_Texture
Обзор
Документация
Войти
/
Manifest
/
Real_Texture
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ToolsForUE/3_SaveActorsForFile.py
28 строк
1013 B
m.samodurov
init commit for The Invaders
17 фев 2026, 04:57
17 фев 2026, 04:57
4a668d4
Код
Авторство
О чём код?
import unreal def export_actors_to_txt(): actor_class = "ProceduralFoliageBlockingVolume" #class actors = unreal.EditorLevelLibrary.get_all_level_actors() blocking_volumes = [a for a in actors if a.get_class().get_name() == actor_class] output_file = #path with open(output_file, "w") as f: f.write("Name, Location (X,Y,Z), Rotation (Pitch,Yaw,Roll), Scale (X,Y,Z)\n") for actor in blocking_volumes: location = actor.get_actor_location() rotation = actor.get_actor_rotation() scale = actor.get_actor_scale3d() f.write( f"{actor.get_name()}, " f"{location.x}, {location.y}, {location.z}, " f"{rotation.pitch}, {rotation.yaw}, {rotation.roll}, " f"{scale.x}, {scale.y}, {scale.z}\n" ) unreal.log(f"Экспортировано {len(blocking_volumes)} акторов в {output_file}") export_actors_to_txt()