# Python: How to get currently loaded Level Sequence? UE 4-27

**URL:** <https://forums.unrealengine.com/t/python-how-to-get-currently-loaded-level-sequence-ue-4-27/509542>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 24, 2022, 6:11pm UTC](https://forums.unrealengine.com/t/python-how-to-get-currently-loaded-level-sequence-ue-4-27/509542 "2022-03-24T18:11:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mad\_guru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mad\_guru](https://forums.unrealengine.com/u/mad_guru)\
**Post date:** [March 24, 2022, 6:11pm UTC](https://forums.unrealengine.com/t/python-how-to-get-currently-loaded-level-sequence-ue-4-27/509542/1 "2022-03-24T18:11:06Z")

</div>

Hi,

I’m trying to figure out how to get the currently loaded Level Sequence. I’ve been using the following and then filter through the items and figure out which one has a class\_name of ‘LevelSequence’:

```auto
selected_assets = unreal.EditorUtilityLibrary.get_selected_assets()

```

This way is a bit limited and requires the user to select the level sequence before running code. I wondered if there is a way to get the path or asset of the loaded level sequence or just loaded assets, which I can filter through to find the level sequence.

Thanks,

Adnan Hussain

---

<div class="post-metadata">

**Author:** ![Max.Chen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/max.chen/32/1194502_2.png) [@Max.Chen](https://forums.unrealengine.com/u/Max.Chen)\
**Post date:** [March 27, 2022, 5:10am UTC](https://forums.unrealengine.com/t/python-how-to-get-currently-loaded-level-sequence-ue-4-27/509542/2 "2022-03-27T05:10:13Z")

</div>

You can get it with `get_current_level_sequence()` in `LevelSequenceEditorBlueprintLibrary`

[https://docs.unrealengine.com/4.27/en-US/PythonAPI/class/LevelSequenceEditorBlueprintLibrary.html](https://docs.unrealengine.com/4.27/en-US/PythonAPI/class/LevelSequenceEditorBlueprintLibrary.html)

---

<div class="post-metadata">

**Author:** ![mad\_guru](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mad\_guru](https://forums.unrealengine.com/u/mad_guru)\
**Post date:** [March 30, 2022, 5:48am UTC](https://forums.unrealengine.com/t/python-how-to-get-currently-loaded-level-sequence-ue-4-27/509542/3 "2022-03-30T05:48:40Z")

</div>

Thanks Max Chen, that was exactly what I needed!
