How can I use Unreal Python API to export an asset from the level?


I’m trying to export these level actors using an Editor Utility

I was able to select them through “Set Selected Level Actors”

But don’t know how to export them now.

I tried this Python script: Asset Import / Export using Unreal Python API | Community tutorial

But this only works for assets in the content browser. How can I modify this to work for actors in the level?

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

for gltf Scripting glTF Exports in Unreal Engine | Unreal Engine 5.3 Documentation | Epic Developer Community

You can use asset export tasks for FBX and obj exports.
here in python Export Selected with Python or Blueprint?
you should have similar functions in blueprint.

Thanks! I used the “Export Map” function and modified my workflow to have only what I need to export in the level. Will try your method too!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.