Community Tutorial: Asset Import / Export using Unreal Python API

This 2 part video series covers the process for importing and exporting assets using the Unreal Python API.

https://dev.epicgames.com/community/learning/tutorials/LnE7/unreal-engine-asset-import-export-using-unreal-python-api

Your code has an error

in your second if (which for clarity should be an elif) has:

tgaExporter = unreal.TextureExporterTGA()
exportTask.exporter = tgaExporter
fbxExporter.run_asset_export_task(exportTask)

which should be
tgaExporter = unreal.TextureExporterTGA()
exportTask.exporter = tgaExporter
tgaExporter.run_asset_export_task(exportTask)

pretty good tutorial otherwise.

Good catch, sorry about that!

1 Like

Great tutorial!

How can I modify this to work for actors in the level?

I need to export one fbx, one obj and one gltf.