Is it possible to open a level sequence before starting render?
I have a weird case where I need to open level a sequence (e.g. how you open it in the editor), so it will load assets and this is somehow helps to make sure everything is loaded properly on render.
I’ve tried to insert to both execute_delayed and _post_init.py but I get the same error AttributeError: module 'unreal' has no attribute 'EditorAssetLibrary'. I assume EditorAssetLibrary is not loaded when you start Unreal from cmd or something.
print("looking for an asset")
a = unreal.EditorAssetLibrary.load_asset("/Game/Resources/Spawnable")
print("Found asset", a)
sel = [a]
# is also None starting code from commandline
aes = unreal.get_editor_subsystem(unreal.AssetEditorSubsystem)
aes.open_editor_for_assets(sel)