How to save an anonymous layer

Hello all, I am sorry, it’s one of those times again I feel I am missing something super obvious because I have been staring at it to long. How can I save an anonymous layer?

I am trying something like this:

 flat = UsdUtils.FlattenLayerStack(stage)
 flat.CreateIdentifier(out_file,  {'format' : 'usd'})
 flat.Save()

But that does not work, any thoughts?

thanks,
Koen

Ah, I think I was confusing UsdStage.Export() with SdfLayer.Export()

It was one of those things :slight_smile: