# LevelExporterUSD won't export

**URL:** <https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202>\
**Category:** Programming & Scripting\
**Tags:** Python, bug, unreal-engine, question, USD\
**Created:** [January 27, 2026, 7:54am UTC](https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202 "2026-01-27T07:54:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Quanti13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quanti13](https://forums.unrealengine.com/u/Quanti13)\
**Post date:** [January 27, 2026, 7:54am UTC](https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202/1 "2026-01-27T07:54:42Z")

</div>

Hi, I have a level and inside I have a sub-level. I filter it’s actor and open that sub-level, then I try to export this level using LevelExporterUSD. Can you tell me if my script is wrong or if this is a bug?

This is my script inside VSCode. When I change the USD for FBX it works btw.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/b/a/8badf7d5b484d9c08f3b72ee7f86643aad103596.png)

When I run with debugging it brings me to level\_exporter.py where it throws this error. Inside export\_with\_cdo\_options() the line: context.root\_layer\_path = options\_cdo.current\_task.filename  
Exception has occurred: AttributeError  
‘NoneType’ object has no attribute ‘filename’

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/6/0a66dd1983e2e1bfc48dcfb20cc02eab42532ab5.png)

Also I am using UE 5.7

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [January 28, 2026, 11:27am UTC](https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202/2 "2026-01-28T11:27:28Z")

</div>

The dev confirmed it is a known limitation to this approach.

At the moment, the recommended, and cleaner way, is to call the export directly

> from usd\_unreal import exporting\_utils, level\_exporter  
> …  
> context = exporting\_utils.UsdExportContext()  
> context.root\_layer\_path = lvl\_export\_path  
> context.options = usd\_options  
> context.world = world
> 
> level\_exporter.export(context)

---

<div class="post-metadata">

**Author:** ![Quanti13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quanti13](https://forums.unrealengine.com/u/Quanti13)\
**Post date:** [January 28, 2026, 8:38pm UTC](https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202/3 "2026-01-28T20:38:12Z")

</div>

Are there API docs for usd\_unreal ?

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [January 30, 2026, 9:55am UTC](https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202/4 "2026-01-30T09:55:09Z")

</div>

I am not aware of an API doc for those functions,

however the code is there Engine/Plugins/Importers/USDImporter/Content/Python/usd\_unreal/

each function has a description in comments.

---

<div class="post-metadata">

**Author:** ![Quanti13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quanti13](https://forums.unrealengine.com/u/Quanti13)\
**Post date:** [January 30, 2026, 1:29pm UTC](https://forums.unrealengine.com/t/levelexporterusd-wont-export/2695202/5 "2026-01-30T13:29:03Z")

</div>

thank you
