# Open a level sequence using python

**URL:** <https://forums.unrealengine.com/t/open-a-level-sequence-using-python/225469>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [April 20, 2021, 7:40pm UTC](https://forums.unrealengine.com/t/open-a-level-sequence-using-python/225469 "2021-04-20T19:40:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_b7cc87c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b7cc87c6](https://forums.unrealengine.com/u/anonymous_user_b7cc87c6)\
**Post date:** [April 20, 2021, 7:40pm UTC](https://forums.unrealengine.com/t/open-a-level-sequence-using-python/225469/1 "2021-04-20T19:40:25Z")

</div>

I am trying to open the level sequencer editor. I have a level sequence at “/Game/myTest.myTest”.  
Is there a way to get the asset at at this path.  
i was trying to select the asset using this unreal.EditorAssetLibrary().sync\_browser\_to\_objects([“/Game/myTest.myTest”])

Even though it selects the asset , when i do get selected asset, it returns empty list.  
is there anyother way i could open the editor ?  
this is my script:

import os  
import unreal  
unreal.EditorAssetLibrary().sync\_browser\_to\_objects([“/Game/myTest.myTest”])

@unreal.uclass()  
class selasset(unreal.GlobalEditorUtilityBase):  
pass

sel = selasset().get\_selected\_assets()  
unreal.AssetEditorSubsystem().open\_editor\_for\_assets(sel)

This script works fine in ue4 editor console

---

<div class="post-metadata">

**Author:** ![UE\_FlavienP](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ue_flavienp/32/1194546_2.png) [@UE\_FlavienP](https://forums.unrealengine.com/u/UE_FlavienP)\
**Post date:** [April 26, 2021, 10:01am UTC](https://forums.unrealengine.com/t/open-a-level-sequence-using-python/225469/2 "2021-04-26T10:01:47Z")

</div>

Hello,

what about, in 4.26.2

```
import unreal

#get selection from the content browser
sel = unreal.EditorUtilityLibrary.get_selected_assets()
print(sel)

#load asset from path and add it to selection
sel.append(unreal.EditorAssetLibrary.load_asset("/game/NewLevelSequence"))

aes = unreal.get_editor_subsystem(unreal.AssetEditorSubsystem)
aes.open_editor_for_assets(sel)

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b7cc87c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b7cc87c6](https://forums.unrealengine.com/u/anonymous_user_b7cc87c6)\
**Post date:** [May 10, 2021, 4:42am UTC](https://forums.unrealengine.com/t/open-a-level-sequence-using-python/225469/3 "2021-05-10T04:42:56Z")

</div>

Thanks a lot

---

<div class="post-metadata">

**Author:** ![schiho](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@schiho](https://forums.unrealengine.com/u/schiho)\
**Post date:** [October 10, 2024, 11:48pm UTC](https://forums.unrealengine.com/t/open-a-level-sequence-using-python/225469/4 "2024-10-10T23:48:44Z")

</div>

There is also specific Helper Libraries available:

```auto
level_sequence("/Game/MyLevelSequence.MyLevelSequence")
unreal.LevelSequenceEditorBlueprintLibrary().open_level_sequence(level_sequence)

```
