python SequencerTools export_level_sequence_fbx doesn't export subtracks

I’m trying to export a level sequence to fbx with python, it all works well if i don’t have subsequences, but if I do whatever is inside the subsequence don’t gets exported.

Am I missing any configuration to do this? or is it not supported?

Is there a different way to export a sequence with python to get all the contents on a single output fbx file?

Thanks

Steps to Reproduce
Create a level sequence with an animated character. Create a second level sequence and add the 1st one as a subtrack

Export with the following python code:

sequencer_tools = unreal.SequencerTools()

export_params = unreal.SequencerExportFBXParams()

export_params.set_editor_property(“fbx_file_name”, export_path)

export_params.set_editor_property(“sequence”, level_sequence) # pass the parent LS here

export_params.set_editor_property(“world”, world)

sequencer_tools.export_level_sequence_fbx(export_params)

The resulting fbx is empty (this works if I export individually the level sequence with the animation, but i will have other objects outside that Level sequence that I also want exported on the same output file so I need to export all together)

Unfortunately, this isn’t supported at the moment, the only way to do this is export each sequence and then reassemble them.

You can focus on each subsequence to gather than do things with it using something like the code below:

# Get the current level sequence of focus
focused_level_sequence = unreal.LevelSequenceEditorBlueprintLibrary.get_focused_level_sequence()
# Get the first sub sequence track and get the first section from the level sequence
sub_sequence_track = level_sequence.find_tracks_by_type(unreal.MovieSceneSubTrack)[0]
sub_sequence_section = sub_sequence_track.get_sections()[0]
# Set the current level sequence of focus
unreal.LevelSequenceEditorBlueprintLibrary.focus_level_sequence(sub_sequence_section)
 
 
# Get the current level sequence of focus
focused_level_sequence = unreal.LevelSequenceEditorBlueprintLibrary.get_focused_level_sequence()

Dustin

Thanks Dustin, It would be ideal to be able to do it in one go, but until then we can combine later in the pipe, thanks!!