File tree Expand file tree Collapse file tree
Content/Blueprints/ImportMap Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version https://git-lfs.github.com/spec/v1
2- oid sha256:85908d2835e782b8cbbab5845d884457bee0ec5614e023e1987d17efaf3eb649
3- size 730981
2+ oid sha256:bc8bb9539b020c80e98598fc1a808417c2f55e5609697134bdbce9b222c504de
3+ size 915854
Original file line number Diff line number Diff line change 1+ import unreal
2+ import sys
3+
4+ heightmap_directory = sys .argv [1 ]
5+ heightmap_file_name = sys .argv [2 ]
6+ heightmap_textures_path = sys .argv [3 ]
7+
8+ # # Import known images as a list of Texture2D objects
9+ heightmap_texture_png = heightmap_directory + "\\ " + heightmap_file_name
10+ data = unreal .AutomatedAssetImportData ()
11+ data .set_editor_property ('destination_path' , heightmap_textures_path )
12+ data .set_editor_property ('filenames' , [heightmap_texture_png ])
13+ lst_texture2D = unreal .AssetToolsHelpers .get_asset_tools ().import_assets_automated (data )
You can’t perform that action at this time.
0 commit comments