# How to add key frames in UE's AnimSequence, using script?

**URL:** <https://forums.unrealengine.com/t/how-to-add-key-frames-in-ues-animsequence-using-script/1351947>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 30, 2023, 2:50am UTC](https://forums.unrealengine.com/t/how-to-add-key-frames-in-ues-animsequence-using-script/1351947 "2023-10-30T02:50:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wegatron0x](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wegatron0x](https://forums.unrealengine.com/u/wegatron0x)\
**Post date:** [October 30, 2023, 2:50am UTC](https://forums.unrealengine.com/t/how-to-add-key-frames-in-ues-animsequence-using-script/1351947/1 "2023-10-30T02:50:56Z")

</div>

I have a Metahuman key frames data define by “CTRL\_expression\_…” in csv file, I want to import it to create a animation. I tried to use python api to do it(but there’s no way to get animation curve data, let alone add keyframes):

```python
animation_path = "/Script/Engine.AnimSequence'/Game/20230830_MySlate_9/myz.myz'"
animation_asset = unreal.EditorAssetLibrary.load_asset(animation_path)
animation_sequence = unreal.AnimSequence.cast(animation_asset)

```

 ![screenshot-20231030-104050](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/2/b/c2ba61646747bd63be8d7a73f5a40d8aef8e2a92.png)

can any one help?

---

<div class="post-metadata">

**Author:** ![Mic-33](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mic-33](https://forums.unrealengine.com/u/Mic-33)\
**Post date:** [July 31, 2025, 8:42pm UTC](https://forums.unrealengine.com/t/how-to-add-key-frames-in-ues-animsequence-using-script/1351947/2 "2025-07-31T20:42:40Z")

</div>

Hey did you ever figure this out?
