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?
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()