FBX Camera Export from Level Sequence using Python API

Hello community!

I’m trying to export an animated camera as FBX from a LevelSequence using Unreal Python API, with no luck so far.

I’m basically trying to replicate the behaviour that you get when you use the Actions => Export functionality within the Sequencer.

I have tried:

  1. Use unreal.SequencerTools.export_level_sequence_fbx function, but this function exports each binding tracks as separated transform nodes within the FBX, so it is not what I am looking for.
  2. Use the different unreal.ExporterFBX classes available within the API with no success.

Has anyone done this in the past?

Thank you so much for you help!

You should be able to loop the bindings on the level sequence and instead of passing in all the binding tracks, you can pass in an array with just the filtered binding track by name. However this feature is currently broken in UE5.1 as it crashes your editor but it does work in UE5. Note that in UE5.1 as well the args for the export_level_sequence_fbx has changed from 6 args to just one being In Params. You’ll need to build the in params first before passing it to the function. I only know of this node in blueprint but not python.